[weewx-user] Re: Adding data from homemade wireless sensors to weewx

2018-01-25 Thread Andreas Landixus
I see dust and wind now :)
No really, most of us users are not able to code this.

In my opinion: it is good to discuss this, and we can speak about 
alternatives.
Working with text is not the badest option i think. And maybe some time 
somebody with more coding knowledge do the mqtt thing.

I currently work some stuff out, but is always try and error.

weewx is great and its free :) Thank you also for your great work mwall!


Am Donnerstag, 25. Januar 2018 00:49:48 UTC+1 schrieb mwall:
>
> On Wednesday, January 24, 2018 at 5:59:40 PM UTC-5, vince wrote:
>>
>>
>> So I'm hoping for a scenario that seeds a secondary db from a MQTT topic, 
>> in effect.   Kinda like the MQTT 'out' extension Matthew wrote, just in 
>> reverse.
>>
>
> exactly!  we need an mqtt.py that contains an uploader, a driver, and a 
> service all in one package, as a single extension.  then you can use the 
> part for the purpose you need.  the maxbotix extension does part of this - 
> it is both a driver and a service.  if you have a station already, you load 
> it as a driver to augment that.  if you want to run multiple weewx 
> instances, then you can run it as a driver.  owfs is the same way.
>
> so if someone is keen to make this happen before i get around to it (my 
> plate is beyond full right now), take a look at the weewx-maxbotix 
> extension for a simple example.
>
> m 
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Most reliable mini computer for weeWX?

2018-01-24 Thread Andreas Landixus
i am running weewx on a raspberry pi 3B for 2 years

there is also a unify controller with java7  

runs well!

Am Donnerstag, 25. Januar 2018 06:20:24 UTC+1 schrieb vk3...@gmail.com:
>
> Personally I'd be checking on what is causing the 'freezing' because, if 
> it is something like running out of space for the ram-disk based log files 
> (as happened to me once), or the lack of space on the SD card (not 
> necessarily from WeeWx itself but from other files being written) or even a 
> failure with the SD card (a portion that is not written to for about a 
> month after the boot) then those might well be transferred to the new 
> device.
>
> Susan
>
> On Thursday, January 25, 2018 at 6:38:36 AM UTC+11, Alec Bennett wrote:
>>
>> I've been running weeWX on a Beaglebone Black for about a year now, and 
>> the thing has been freezing about once a month. It's running headless so is 
>> hard to diagnose.
>>
>> I'm probably going to switch to a Pi, but thought I'd see if anyone has 
>> any other suggestions for a very reliable mini computer that plays nice 
>> with weeWX?
>>
>>  
>>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Adding data from homemade wireless sensors to weewx

2018-01-24 Thread Andreas Landixus
Haha, i want to do the same with multiple ds18b20 :)
i post via http post to the weewx and save to text file, and also dont want 
replace the driver, also i do not want more instances.

when we have a mqtt as a service weewx rocks more then now :)
 



Am Mittwoch, 24. Januar 2018 14:46:45 UTC+1 schrieb Steve Chiz:
>
> Thanks- I'll take a look and report back if I sort anything out. And yes, 
> mwall seems to do some terrific stuff, but a driver isn't what I need. I 
> don't want to replace my wx station with MQTT sensors, but add some soil 
> temperature readings, etc., from other Pis scattered around my house and 
> yard. I'm currently parsing text files as a service, but subscribing to an 
> MQTT topic would be much better I think.  
>
> On Wednesday, January 24, 2018 at 1:58:54 AM UTC-5, Andreas Landixus wrote:
>>
>> https://github.com/Landixus/mqttpondWeewx 
>> is not working right now, but could be that i have server and client 
>> running on same raspberry pi
>> But when you test it and post errors we can investigate deeper.
>>
>> Otherwise mwall has write a driver for mqtt that works i hear:
>> https://github.com/morrowwm/weewxMQTT
>>
>> Am Dienstag, 23. Januar 2018 23:27:44 UTC+1 schrieb Steve Chiz:
>>>
>>> I, too, would be interested in this, as it seems like it would be a much 
>>> better way than parsing txt or xml files as I currently do for additional 
>>> sensors.
>>>
>>> On Thursday, January 18, 2018 at 9:04:53 AM UTC-5, Andreas Landixus 
>>> wrote:
>>>>
>>>> Oh i am high interested in this service, because i want to add some 
>>>> sensors that publish mqtt messages.
>>>> Please post it.
>>>>
>>>> Am Dienstag, 12. September 2017 02:39:09 UTC+2 schrieb Dan Verbus:
>>>>>
>>>>> I've got a service written that works, if you want a copy. Each sensor 
>>>>> publishes to it's own MQTT topic and the service reads off the queue 
>>>>> whenever it receives a loop packet and appends whatever data it finds. 
>>>>> Let 
>>>>> me know and I'll post it.
>>>>>
>>>>> Dan
>>>>>
>>>>>
>>>>> On Wednesday, June 21, 2017 at 7:37:28 PM UTC-4, Craig Thom wrote:
>>>>>>
>>>>>> Thanks.  I'm using the sdr driver, so I'm leaning toward a service, 
>>>>>> and I've already got a little experience writing one.
>>>>>>
>>>>>> On Tuesday, June 20, 2017 at 6:05:12 PM UTC-4, Neville Davis wrote:
>>>>>>>
>>>>>>> In getting the data into weewx.I have a number of different 
>>>>>>> sensors i2C one wire and data from a web sever (json) from my 
>>>>>>> Airconditioner...all being input to weewx.
>>>>>>>
>>>>>>> My basic method is to get data as a csv file by running scripts from 
>>>>>>> boot ( i have 3 of these files being generated in a ramdisk) and then I 
>>>>>>> use 
>>>>>>> 2 methods...a driver the get all the weather data and a weewx service 
>>>>>>> to 
>>>>>>> get the data from the aircon. The following is a screen shot of the 
>>>>>>> current 
>>>>>>> conditions.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Monday, June 19, 2017 at 10:43:33 PM UTC+10, Craig Thom wrote:
>>>>>>>>
>>>>>>>> Thanks.  My question is really about getting the data into weewx, 
>>>>>>>> but I'll worry about that later.
>>>>>>>>
>>>>>>>> After another message about the sensors themselves, I've decided to 
>>>>>>>> go with low power 915MHz radio using the mysensors org protocol.  I 
>>>>>>>> should 
>>>>>>>> be able to get many months from 3xAA batteries.  The parts are coming 
>>>>>>>> from 
>>>>>>>> China, so I've got a month or two to think about getting them into 
>>>>>>>> weewx. 
>>>>>>>>  It will probably be after the eclipse, since I'll be spending 
>>>>>>>> increasing 
>>>>>>>> time testing the hardware and software to photograph it.
>>>>>>>>
>>>>>>>> So sensors through mysensors hub to MQTT broker, and then somehow 
>>>>>&

[weewx-user] Re: mqtt extension TLS required ?

2018-01-23 Thread Andreas Landixus
TLS is only required if you use client user/pass authentication.

MQTT post on a topic for example  "weather" is the topic "tempOut 12.02" is 
the output 
MQTT is not for human friendly output :) more for exchange data. 

Am Mittwoch, 24. Januar 2018 01:42:03 UTC+1 schrieb vince:
>
> In looking at the MQTT extension at 
> https://github.com/weewx/weewx/wiki/mqtt the code is a little unclear to 
> me.  Is TLS required for uploading weewx data to a MQTT broker ?   At line 
> 214 in the mqtt.py it "seems" like it's optional ()
>
>
> Also, is there a clean way of dumping out a what it posts to the broker in 
> some pretty(ish) human-friendly format ?   
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Adding data from homemade wireless sensors to weewx

2018-01-23 Thread Andreas Landixus
https://github.com/Landixus/mqttpondWeewx 
is not working right now, but could be that i have server and client 
running on same raspberry pi
But when you test it and post errors we can investigate deeper.

Otherwise mwall has write a driver for mqtt that works i hear:
https://github.com/morrowwm/weewxMQTT

Am Dienstag, 23. Januar 2018 23:27:44 UTC+1 schrieb Steve Chiz:
>
> I, too, would be interested in this, as it seems like it would be a much 
> better way than parsing txt or xml files as I currently do for additional 
> sensors.
>
> On Thursday, January 18, 2018 at 9:04:53 AM UTC-5, Andreas Landixus wrote:
>>
>> Oh i am high interested in this service, because i want to add some 
>> sensors that publish mqtt messages.
>> Please post it.
>>
>> Am Dienstag, 12. September 2017 02:39:09 UTC+2 schrieb Dan Verbus:
>>>
>>> I've got a service written that works, if you want a copy. Each sensor 
>>> publishes to it's own MQTT topic and the service reads off the queue 
>>> whenever it receives a loop packet and appends whatever data it finds. Let 
>>> me know and I'll post it.
>>>
>>> Dan
>>>
>>>
>>> On Wednesday, June 21, 2017 at 7:37:28 PM UTC-4, Craig Thom wrote:
>>>>
>>>> Thanks.  I'm using the sdr driver, so I'm leaning toward a service, and 
>>>> I've already got a little experience writing one.
>>>>
>>>> On Tuesday, June 20, 2017 at 6:05:12 PM UTC-4, Neville Davis wrote:
>>>>>
>>>>> In getting the data into weewx.I have a number of different 
>>>>> sensors i2C one wire and data from a web sever (json) from my 
>>>>> Airconditioner...all being input to weewx.
>>>>>
>>>>> My basic method is to get data as a csv file by running scripts from 
>>>>> boot ( i have 3 of these files being generated in a ramdisk) and then I 
>>>>> use 
>>>>> 2 methods...a driver the get all the weather data and a weewx service to 
>>>>> get the data from the aircon. The following is a screen shot of the 
>>>>> current 
>>>>> conditions.
>>>>>
>>>>>
>>>>>
>>>>> On Monday, June 19, 2017 at 10:43:33 PM UTC+10, Craig Thom wrote:
>>>>>>
>>>>>> Thanks.  My question is really about getting the data into weewx, but 
>>>>>> I'll worry about that later.
>>>>>>
>>>>>> After another message about the sensors themselves, I've decided to 
>>>>>> go with low power 915MHz radio using the mysensors org protocol.  I 
>>>>>> should 
>>>>>> be able to get many months from 3xAA batteries.  The parts are coming 
>>>>>> from 
>>>>>> China, so I've got a month or two to think about getting them into 
>>>>>> weewx. 
>>>>>>  It will probably be after the eclipse, since I'll be spending 
>>>>>> increasing 
>>>>>> time testing the hardware and software to photograph it.
>>>>>>
>>>>>> So sensors through mysensors hub to MQTT broker, and then somehow 
>>>>>> into weewx.  In August.
>>>>>>
>>>>>> On Wednesday, June 14, 2017 at 11:28:27 AM UTC-4, Paul Bartholdi 
>>>>>> wrote:
>>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>> It could be good to have a look at "http://www.yoctopuce.com;. The 
>>>>>>> company is based in Geneva, Switzerland, but send products worldwide, 
>>>>>>> with 
>>>>>>> typical Swiss high quality. They have extremely low power hubs usb --> 
>>>>>>> Ethernet, gsm or WiFi, which can put all the boards asleep and wake up 
>>>>>>> only 
>>>>>>> on command from central PC. Boards include barometer, temperature(s), 
>>>>>>> humidity, light and many other possibilities not so much related to 
>>>>>>> weather 
>>>>>>> station. Software exists for most high level languages (C, C++, Java, 
>>>>>>> Python, shell (bash) etc.).
>>>>>>> MQTT looks very interesting, but I had no time yet to play with it.  
>>>>>>> To interface other programs with weewx data, I simply interrogate the 
>>>>>>> database (mysql).
>>>>>>> Hope this helps. Paul
>>>>>>>
>>>>>>

[weewx-user] Re: ds18b20 multiple sensors from esp8266 nodemcu to file

2018-01-21 Thread Andreas Landixus
Yes i am on it. But i am a bad coder, it is more try and error.
I need help from the pros here :)

Am Montag, 22. Januar 2018 02:11:29 UTC+1 schrieb Ralph Underwood:
>
> I am interested in your progress. I have a esp8266 on my work bench - 
> haven't got started with it yet. I was looking for options use wifi with my 
> OWFS based system. I use the file parse driver to add data connected to 
> RPi. 
>
>
>
> On Sunday, January 21, 2018 at 10:42:47 AM UTC-8, Andreas Otten wrote:
>>
>> hmm not working how i want it.
>>
>> can someone tell me how to read values from a ip adress?
>>
>> I have on 192.168.0.70 my data comma separated and i want to read the 
>> values with:
>>
>> import syslog
>> import requests
>> import weewx
>> from weewx.wxengine import StdService
>>
>> class ds18b20(StdService):
>> def __init__(self, engine, config_dict):
>> super(ds18b20, self).__init__(engine, config_dict)
>> d = config_dict.get('PondService', {})
>> #self.filename = d.get('filename', 
>> '/home/weewx/public_html/data/ds18b20.txt')
>> #self.filename = d.get('filename', 'urllib2.urlopen("
>> http://192.168.0.70;).read()')
>> # link = "http://192.168.0.70;
>> syslog.syslog(syslog.LOG_INFO, "ds18b20: using %s" % 
>> self.filename)
>> self.bind(weewx.NEW_ARCHIVE_RECORD, self.read_file)
>>
>> def read_file(self, event):
>> try:
>> with open(self.filename) as f:
>> #value = f.read()
>> line = f.readline()
>> value = line.split(',')
>> syslog.syslog(syslog.LOG_DEBUG, "ds18b20: found value of %s" 
>> % value)
>> event.record['soilTemp1'] = float(value[0])
>> event.record['soilTemp2'] = float(value[1])
>> event.record['soilTemp3'] = float(value[2])
>> event.record['soilTemp4'] = float(value[3])
>> except Exception, e:
>> syslog.syslog(syslog.LOG_ERR, "ds18b20: cannot read value: 
>> %s" % e)
>>
>> i fail here. What is the line to read from URL? my both attempts are 
>> faulty :(
>>
>>
>>
>> Am Samstag, 20. Januar 2018 20:31:25 UTC+1 schrieb Andreas Otten:
>>>
>>> Before i invent the wheel new  :)
>>>
>>> anybody have a *ino file with a http post to write the values in a file 
>>> from multiple ds18b20 sensors ?
>>>
>>> I have the weewx functions ready, but not the ino file for the esp8266
>>>
>>> if yes, i am happy when you share it :)
>>>
>>> if not i made one :)
>>>
>>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Adding data from homemade wireless sensors to weewx

2018-01-18 Thread Andreas Landixus
Oh i am high interested in this service, because i want to add some sensors 
that publish mqtt messages.
Please post it.

Am Dienstag, 12. September 2017 02:39:09 UTC+2 schrieb Dan Verbus:
>
> I've got a service written that works, if you want a copy. Each sensor 
> publishes to it's own MQTT topic and the service reads off the queue 
> whenever it receives a loop packet and appends whatever data it finds. Let 
> me know and I'll post it.
>
> Dan
>
>
> On Wednesday, June 21, 2017 at 7:37:28 PM UTC-4, Craig Thom wrote:
>>
>> Thanks.  I'm using the sdr driver, so I'm leaning toward a service, and 
>> I've already got a little experience writing one.
>>
>> On Tuesday, June 20, 2017 at 6:05:12 PM UTC-4, Neville Davis wrote:
>>>
>>> In getting the data into weewx.I have a number of different sensors 
>>> i2C one wire and data from a web sever (json) from my Airconditioner...all 
>>> being input to weewx.
>>>
>>> My basic method is to get data as a csv file by running scripts from 
>>> boot ( i have 3 of these files being generated in a ramdisk) and then I use 
>>> 2 methods...a driver the get all the weather data and a weewx service to 
>>> get the data from the aircon. The following is a screen shot of the current 
>>> conditions.
>>>
>>>
>>>
>>> On Monday, June 19, 2017 at 10:43:33 PM UTC+10, Craig Thom wrote:

 Thanks.  My question is really about getting the data into weewx, but 
 I'll worry about that later.

 After another message about the sensors themselves, I've decided to go 
 with low power 915MHz radio using the mysensors org protocol.  I should be 
 able to get many months from 3xAA batteries.  The parts are coming from 
 China, so I've got a month or two to think about getting them into weewx. 
  It will probably be after the eclipse, since I'll be spending increasing 
 time testing the hardware and software to photograph it.

 So sensors through mysensors hub to MQTT broker, and then somehow into 
 weewx.  In August.

 On Wednesday, June 14, 2017 at 11:28:27 AM UTC-4, Paul Bartholdi wrote:
>
> Hello,
>
> It could be good to have a look at "http://www.yoctopuce.com;. The 
> company is based in Geneva, Switzerland, but send products worldwide, 
> with 
> typical Swiss high quality. They have extremely low power hubs usb --> 
> Ethernet, gsm or WiFi, which can put all the boards asleep and wake up 
> only 
> on command from central PC. Boards include barometer, temperature(s), 
> humidity, light and many other possibilities not so much related to 
> weather 
> station. Software exists for most high level languages (C, C++, Java, 
> Python, shell (bash) etc.).
> MQTT looks very interesting, but I had no time yet to play with it.  
> To interface other programs with weewx data, I simply interrogate the 
> database (mysql).
> Hope this helps. Paul
>
> On Tuesday, June 13, 2017 at 3:53:48 PM UTC+2, Craig Thom wrote:
>>
>> tl;dr What's the best way of getting home brew wireless sensor data 
>> into weewx?
>>
>> I plan to build a soil moisture (and temperature) sensor for my 
>> garden bed.  I'll likely build another for leaf wetness and UV index, 
>> because the sensors are cheap and it will be fun.
>>
>> The question is how best to get this data to weewx.  I am already 
>> using the SDR driver for my Acurite 5-in-1 and additional sensors.
>>
>> I could use a 433MHz transmitter.  I think, though, I'd have to 
>> decide on how to make a packet, then modify rtl_433 to recognize that 
>> packet, then modify SDR.py to use that new rtl_433 packet.  This seems 
>> pretty complicated.
>>
>> Or, since these sensors will be within range of wifi, I could use an 
>> ESP2866.  This is attractive because the microcontroller for reading the 
>> sensor and processing the data is in the same package.  I really like 
>> this 
>> idea.
>>
>> But how do I get the data to weewx?
>>
>> Because the sensor will be running on batteries (and maybe solar 
>> cells for the UV/leaf wetness one), I do not want to turn on the wifi 
>> radio 
>> except when absolutely necessary, so weewx will not be able to initiate 
>> contact.
>>
>> My first thought was to use ftp, so the sensor connects to an FTP 
>> server on my network, probably on the RPi running weewx, and dumps a 
>> file. 
>>  Then I could write a service within weewx to check for that file, read 
>> it, 
>> and add the data to the LOOP packet.
>>
>> But I was reading through old discussions here, and I found one using 
>> MQTT as a source for weewx.  There was no resolution reached, other than 
>> some references to weeRT that I didn't really understand (and weeRT is a 
>> lot harder to Google than weewx).  
>>
>> MQTT is attractive because it's a standard,