Author Topic: Developing a Weather Plugin, videos  (Read 7229 times)

SBCC

  • Guru
  • ****
  • Posts: 156
    • View Profile
Re: Developing a Weather Plugin, videos
« Reply #90 on: February 19, 2015, 01:12:19 pm »
Hi

Below is a link to the current Weather project folder. This depends on libcurl and libjsoncpp. I still want to add some notes and radar is still not implemented but otherwise works fine for NOAA only. I'm still not sure how the pluto_mutexes work and if they are working but it's been running for a day and no crashes yet. In script in the device web admin page Configuration Data I've added a timer to affect the data update time as "timer:'min'". So "timer:10" would get the web data every 10 minutes. This defaults to 5 minutes. I've added defaults for everything. Feedback is appreciated.

https://www.dropbox.com/sh/nd2jtf4eg2jl8pw/AAB9-De03ogqI3AqRbw4VNIza?dl=0

Thanks

Jim

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4571
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
Re: Developing a Weather Plugin, videos
« Reply #91 on: February 20, 2015, 03:14:45 pm »
Hello everybody.

I am doing a series of videos detailing the creation of a Weather Plugin, as an example of how to use Plugins to add whole house functionality to Orbiter.

The first video can be viewed here:

-Thom

Nice Video Thom...loving the spaced out soundtrack :-)

Andy
Andy Herron,
CHT Ltd

My Blog; http://ellipticalcurve.com

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, inquiries@ellipticalcurve.com via email or PM me here.

Latest Athena UI news; http://wp.me/P4KgIc-aF

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

Get a Dianemo License: http://forum.linuxmce.org/index.php?topic=8880.msg100221#msg100221
Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk

SBCC

  • Guru
  • ****
  • Posts: 156
    • View Profile
Re: Developing a Weather Plugin, videos
« Reply #92 on: February 21, 2015, 12:13:43 am »
Open Weather Map allowed us to use their API for free without adding their name on the orbiter. They only requested that we mention them on the website and any wiki page for the weather screen. If this is OK and can be done I will go ahead and add that API as it works for global weather.

posde

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3105
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Developing a Weather Plugin, videos
« Reply #93 on: February 21, 2015, 10:51:50 am »
Fine with me.

cfernandes

  • Guru
  • ****
  • Posts: 307
    • View Profile
    • my company web site
Re: Developing a Weather Plugin, videos
« Reply #94 on: February 24, 2015, 07:28:56 pm »
Hi Jim

i made some change  on code, now  is working  with NOAA  and  Word Weather online.
I'll leave running for a few days at home to see if everything is ok!


Carlos

cfernandes

  • Guru
  • ****
  • Posts: 307
    • View Profile
    • my company web site
Re: Developing a Weather Plugin, videos
« Reply #95 on: February 26, 2015, 11:57:27 am »
Jim,

my changes   is:  change NOAA and WWO (word Weather Online) to read  configuration parameter on  web admin.

for NOAA  Configuration is   API:NOAA:language:units:lat:lon 
                            example API:NOAA:english:0:28.53833355:-81.37923649
for WWO  Configuration is   API:WWO:language:apikey:units:city 
                             example API:WWO:pt:0b6d39679dabe54e9749209aa2e54:C:belo_horizonte

my code https://www.dropbox.com/s/3qmrdmo84cfv9gg/weather.tar?dl=0
« Last Edit: March 04, 2015, 02:36:40 pm by cfernandes »

phenigma

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1100
    • View Profile
Re: Developing a Weather Plugin, videos
« Reply #96 on: March 01, 2015, 04:43:30 pm »
Hey guys, I've been distracted.  How are things going?  Is there anything I can do to help right now?

J(ason).

cfernandes

  • Guru
  • ****
  • Posts: 307
    • View Profile
    • my company web site
Re: Developing a Weather Plugin, videos
« Reply #97 on: March 04, 2015, 02:37:57 pm »
Hi ,

i finished the code  and resolve some issues off 100% use off cpu .

Feedback is appreciated.

https://www.dropbox.com/s/3qmrdmo84cfv9gg/weather.tar?dl=0