Created At

Oct 20, 2017

Last Update

Dec 14, 2018

Platforms

HC 2

Views

5688

Download

144

 --------------------------------------------------------------------

Virtual Device to pull information on ionized radiation level

 --                          version 1.69                         --

 --                       Date:  2nd Mar 2017                --

 --------------------------------------------------------------------

by Marcin S. Milewski (gucio1234)

 

 

FUNCTIONS
This Virtual Device reads the information on the level of ionized radiation from the http://radioactiveathome.org/map/.There are sensors distributed all over Europe, some in US, Japan and other countries.

 

 

INSTALLATION

For the VD to be functional the following has to be adjusted:

  • The global variable 'temprad" has to be created
  • Icon of the slider has to be updated as ' yellow radiation with timer'
  • The code has to be adjusted in USER CONFIG Section (Values marked with ENTER in comments).

ThingSpeak API Key if one wants to push data to ThingSpeak. IDs of the Icons (green, yellow, orange, red, yellow with timer)

 

 Coordiantes of the locaton of the sensor 

 How to know where are the sensors located and how to get their coordinates :

 

 The map of the sensors is at: http://radioactiveathome.org/map/

 Click on the dot of the sensor you want to know the location ID

 You will see the popup with the information of the sensor. 

 Note 'Details Sensor' number

  

 You need to see the source of the http://radioactiveathome.org/map/

 Enter 'view-source:http://radioactiveathome.org/map/' 

 into the browser (eg. Chrome)

 Press Ctrl-F to find the sensor number you noted earlier

 Next to the number found you will see the coordinates

 Enter coordinates into the code below.

 

 

CHANGLOG

What is new in version 0.67:

Multilangual support.

 

What is new in version 1.67:

The VD is not anymore auto-refreshed with the time interval set by slider, but it is refreshed by pressing a button. This is to have it triggered by Main Timer Scene.

 

What is new in version 1.68:

German translation added (by gobbli of forum.fibaro.com) 

 

What is new in version 1.69:

Dutch and Slovak translation added (by Bodyart of forum.fibaro.com)

Italian and Croatian translation added (by Sankotronic of forum.fibaro.com) 

 

 

CREDITS TO

 

  • andre                      from forum.lic.pl -  author of the idea
  • rusconidesigner      from forum.fibaro.com  - author of the multicolor radiation icons
  • gucio1234               from forum.fibaro.com & forum.lic.pl  -  who make final version of the VD
  • Sankotronic            from forum.fibaro.com - who make some changes + Croatian and Italian translation
  • jompa68                  from forum.fibaro.com - from whom I got multilangual concept
  • gobbli                      from forum.fibaro.com - author of Deutsch translation
  • Bodyart                   from forum.fibaro.com - author of Dutch and Slovak translation

6 Comments,  Want to add comment please login
7b635c05edfc5dd0bc4db1c85ced81cd

@Maciej Gawrysiak Thank you very much for your interest in Radiation Monitor. The version published here was significantly improved and enhanced by @Sankotronic. This new version is available at the following link : https://forum.fibaro.com/files/file/209-advanced-radiation-monitor-arm-vd-standalone/ Since we do have improved version available, one which was published here is not updated anymore.

30819c51679c30c5f496714595fcce44

I found a problem in your code: function getWebPageData() local HCnet=Net.FHttp("radioactiveathome.org") local webString,sepString,stationID,web_data=HCnet:GET("/map/"),'GLatLng',"0",{} When you do GET you are not checking if the exit code and status is correct so when there are some problems with radioactiveathome.org site the virtual device hangs and stops to collect any data anymore. You can simple correct this by: unction getWebPageData() local HCnet=Net.FHttp("radioactiveathome.org") local sepString,stationID,web_data='GLatLng',"0",{} local webString, status, errorCode = HCnet:GET("/map/") if ((tonumber(errorCode) == 0) and (tonumber(status) == 200)) then local _d_unit,_active,skip=unit(),true,false (...) else fibaro:debug("Error processing request, status: " .. status .. " | errorCode: " .. errorCode) end end

55344be4ccc6ad770d4811e6152518e1

Can it be launched on HC Lite?

7b635c05edfc5dd0bc4db1c85ced81cd

Newest version of this VD was published on marketplace : https://marketplace.fibaro.com/items/advanced-radiation-monitor-vd-v2-1 It is much more advanced, and ism hands free. No user input is needed. I do recommend to upgrade to this version 2.1 published by Sankotronic.

7b635c05edfc5dd0bc4db1c85ced81cd

Terje, I did not know uradmonitor.com project earlier. They offered API interface for their data. The Radiation monitor I published is not easy to link to their project, but I will consider to focus on another, dedicated VD.

© 2024. Nice-Polska Sp. z o.o.Privacy policyTerms & ConditionsFeedback