<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>JSON on iMil.net</title>
    <link>http://imil.net/blog/tags/json/</link>
    <description>Recent content in JSON on iMil.net</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 23 Apr 2018 06:26:45 +0000</lastBuildDate>
    <atom:link href="http://imil.net/blog/tags/json/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Fetch RSVPs from Meetup for further processing</title>
      <link>http://imil.net/blog/posts/2018/fetch-rsvps-from-meetup-for-further-processing/</link>
      <pubDate>Mon, 23 Apr 2018 06:26:45 +0000</pubDate>
      <guid>http://imil.net/blog/posts/2018/fetch-rsvps-from-meetup-for-further-processing/</guid>
      <description>&lt;p&gt;I&amp;rsquo;m running a couple of demos on how and why to use &lt;a href=&#34;https://aws.amazon.com/athena/&#34;&gt;AWS Athena&lt;/a&gt; on a &lt;a href=&#34;https://www.meetup.com/AWS-Valencia/events/249290124/&#34;&gt;Meetup event&lt;/a&gt; tonight here at my hometown of &lt;a href=&#34;https://en.wikipedia.org/wiki/Valencia&#34;&gt;Valencia&lt;/a&gt;. Before you start arguing about &lt;em&gt;AWS&lt;/em&gt; services being closed source, note that &lt;a href=&#34;https://aws.amazon.com/athena/&#34;&gt;Athena&lt;/a&gt; is &amp;ldquo;just&amp;rdquo; an hosted version of &lt;a href=&#34;https://hive.apache.org/&#34;&gt;Apache Hive&lt;/a&gt;. Like pretty much every &lt;em&gt;AWS&lt;/em&gt; service is a hosted version of a famous &lt;em&gt;FOSS&lt;/em&gt; project.&lt;br&gt;&#xA;One of the demos is about fetching the &lt;a href=&#34;https://www.meetup.com/meetup_api/docs/rsvp/&#34;&gt;RSVP&lt;/a&gt; list and process it from a &lt;code&gt;JSON&lt;/code&gt; source to a basic &lt;code&gt;\t&lt;/code&gt; separated text file to be further read by &lt;a href=&#34;https://aws.amazon.com/athena/&#34;&gt;Athena&lt;/a&gt;.&lt;br&gt;&#xA;First thing is to get your &lt;a href=&#34;https://secure.meetup.com/meetup_api/key/&#34;&gt;Meetup API key&lt;/a&gt; in order to interact with &lt;a href=&#34;https://secure.meetup.com/meetup_api&#34;&gt;Meetup&amp;rsquo;s API&lt;/a&gt;. Once done, you can proceed using, for example, &lt;code&gt;curl&lt;/code&gt;:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Fetch monit status in JSON</title>
      <link>http://imil.net/blog/posts/2016/fetch-monit-status-in-json/</link>
      <pubDate>Wed, 16 Mar 2016 07:04:29 +0000</pubDate>
      <guid>http://imil.net/blog/posts/2016/fetch-monit-status-in-json/</guid>
      <description>&lt;p&gt;I wanted to use &lt;a href=&#34;https://mmonit.com/monit/&#34;&gt;monit&lt;/a&gt; as my desktop-alerting system, meaning that when a service or a machine is unreachable on my personnal network, I&amp;rsquo;d see a red dot somewhere on my desktop. Why not &lt;a href=&#34;https://www.nagios.org/&#34;&gt;nagios&lt;/a&gt; you&amp;rsquo;d ask? because my needs are not worth the hassle.&lt;/p&gt;&#xA;&lt;p&gt;Unfortunately, &lt;a href=&#34;https://mmonit.com/monit/&#34;&gt;monit&lt;/a&gt; does not have simple and nice little desktop apps like &lt;a href=&#34;https://nagstamon.ifw-dresden.de/&#34;&gt;nagstamon&lt;/a&gt;, so I decided to write my own.&lt;/p&gt;&#xA;&lt;p&gt;It does not seem to be well known, but &lt;a href=&#34;https://mmonit.com/monit/&#34;&gt;monit&lt;/a&gt; publishes a special &lt;em&gt;URI&lt;/em&gt; that shows a status report in &lt;em&gt;XML&lt;/em&gt; when the mini-&lt;em&gt;HTTP&lt;/em&gt; status server is enabled. The &lt;em&gt;JSON&lt;/em&gt; one is only available for the commercial product they sell, &lt;em&gt;M/Monit&lt;/em&gt;, so I wrote this small utility to manipulate status values in a &lt;em&gt;JSON&lt;/em&gt; format and show a status report within your &lt;code&gt;shell&lt;/code&gt; console.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
