blank
Posted by Daniel Eichhorn

Daniel Eichhorn is a software engineer and an enthusiastic maker. He loves working on projects related to the Internet of Things, electronics, and embedded software. He owns two 3D printers: a Creality Ender 3 V2 and an Elegoo Mars 3. In 2018, he co-founded ThingPulse along with Marcel Stör. Together, they develop IoT hardware and distribute it to various locations around the world.

5 comments

  1. Hi,
    I own one of your epaper kits. I used before and also fiddled with the colour display,
    so I am not new to Wunderground library / json.

    I wanted to use the weather sketch.
    First, nice layout!

    Anyhow, I only modified the hour to suit my needs:
    6h – 12h – 15h – 19h. These should be the next upcoming hours.
    But it seems 6h parses the values of after-tomorrow (I verified with the URL the values).

    Since the json hourly is 36 hour long, it would seem your script/lib is parsing the last 24 hours.
    Could you point me on how to correct it to parse the first 24 values instead?
    Thanks

    • Hi. Sorry about not answering, too many things going on. I don’t quite understand, did you have a look at the library code? If you can tell me where I have a bug I can fix it…

  2. I think you are downloading the values for next days and not the one of the current days. For instance, if it is 9 AM right now, I would like to know the weather today at 12, but I will get the weather tomorrow at 12 which is less interesting (and less precize).

    Your screen is useful, if I can give a look in the morning and decide if it will rain then I’ll go to work by car instead of by bike. Otherwise hourly values are less interes..

    I will explain.
    In my opinion, if I ask value indexed 3, and it is 9 AM, i should get the value in 3 hours (12 today) that is the 3rd value I would recover by calling the
    http://api.wunderground.com/api/APIKEY/hourly/lang:EN/q/FR/City.json
    URL.
    This URL gives you 36 values. so if I want the value tomorrow, I would ask the 27th value.
    Your library will give the value tomorrow at 3 in the morning instead.

    I understand your library parses 24 values, but which one are these? Values from next midnight to following one?
    Last 24 values of the 36??

    I am not that good in coding, otherwise I would modify the library to suit my needs, and maybe it is not a bug it is intentional.

    I am sure I can tweak your script or library but as I said I am not good in coding, so if you could point me in the right direction or explain what your library parses, this could help me (and others maybe).

    thanks!!!

    In the meantime I will try to use the php parser which seems easier and more flexible!

Leave a Reply