Rest Service for OpenSenseMap

129 views
Skip to first unread message

sbar...@gmail.com

unread,
Feb 27, 2021, 1:35:51 PM2/27/21
to weewx-user
Hi, 

For those interested, I have just made a Weewx rest extension to publish your measures to OpenSenseMap (https://opensensemap.org).

The aim being to publish measures from a PM sensor, that I intend to add to my weewx station.

The extension is available on GitHub : https://github.com/sbsrouteur/weewx-opensensemap

I do not know if the code quality will qualify for being listed in the weewx wiki for extension.

Just hope it helps.

Regards,


Tom Keffer

unread,
Feb 27, 2021, 9:17:18 PM2/27/21
to weewx-user
Not sure why you did an override of the get_request() method but, other than that, your extension looks great!

No special "QC" needed to list something in the wiki. Just edit the home page and list it yourself.

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/f90d3460-2e3a-4e6e-9f9c-8804425ef600n%40googlegroups.com.

sbar...@gmail.com

unread,
Feb 28, 2021, 3:04:40 AM2/28/21
to weewx-user
Well Thank you.

I added the extension to the wiki.

The get_request override allows for setting the authkey in the header.

Tom Keffer

unread,
Feb 28, 2021, 10:48:47 AM2/28/21
to weewx-user
Sorry. I meant post_request().

sbar...@gmail.com

unread,
Feb 28, 2021, 11:34:30 AM2/28/21
to weewx-user
You are right, this override is not needed and has been removed from v0.2 :)

pmcg...@gmail.com

unread,
Feb 28, 2021, 3:14:57 PM2/28/21
to weewx-user
Your installer adds UsUnit instead of the required UsUnits in your code.  Otherwise seems to work good.

Thanks!

sbar...@gmail.com

unread,
Feb 28, 2021, 4:10:29 PM2/28/21
to weewx-user
Hi, 

Thanks for the info. I updated the installer.

Karen K

unread,
Mar 4, 2021, 12:12:00 PM3/4/21
to weewx-user
I tried it, and it is working.

Kruse Ludington

unread,
Jun 30, 2022, 1:37:36 PM6/30/22
to weewx-user
Is there a more complete example of the config for this for example for an AmbientWeather WS-2902C weather station such that I do not have to reinvent the wheel when I already have it publishing successfully to many other places with weewx - and would not have to spend forever and a day determining how to change the below example config, especially the [[Sensors]] section?

[StdRESTful] 
       [[OpenSenseMap]] 
         SensorId=INSERT_SENSORBOX_ID_HERE, 
         AuthKey=INSERT_AUTH_KEY_HERE, 
         UsUnits=False, 
         [[Sensors]] 
                [[outTemp]] 
                  SensorId=ENTER_OUT_TEMP_SENSOR_ID 
                  Unit=degree_C #Optional Unit override 
                  Format=%0.3f #Optional Format override 
                [[outHumidity]] 
                  SensorId=ENTER_OUT_Humidity_SENSOR_ID   

Thanks to all...
Reply all
Reply to author
Forward
0 new messages