[weewx-user] WeeWx and MQTT (clean session and QoS)

2019-09-26 Thread Rui Pinto
Hi!

I am using weewx to receive data from my weather station  and transmiting 
that data through MQTT.

I would like to know if it's possible to add QoS=1 and clean_session=false 
to the messages sent by WeeWx to the MQTT broker.

Best Regards.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/43b1a7e2-68ae-4769-a78e-1d1c41a7e548%40googlegroups.com.


Re: [weewx-user] Re: Publishing aggregate data, the topic is TOPIC/loop?

2019-09-04 Thread Rui Pinto
Thanks @Greg Troxel  and @Pat!!

You were very helful... I just wanted to understand why is like the that.

Best Regards

Greg Troxel  escreveu no dia terça, 3/09/2019 à(s) 20:45:

> Pat  writes:
>
> > The aggregate topic is hard-coded to /LOOP because weewx operates on the
> > LOOP method. You can read more about that in the User Guide
> > .
>
> And it's still /loop if you are publishing aggregate information based
> on archive records (the default, I think), even though that's confusing.
>
> To Rui: I would suggest separating trying to understand how things
> behave from why someone chose to make it behave that way.
> Understanding how lets you get things done, and the why is much less
> useful :-)
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/rmisgpd88pp.fsf%40s1.lexort.com
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAHGxKCzxVHySBCmD8WeuVBReCCMSb0dghCdhn4O2ZGNhxO3TNg%40mail.gmail.com.


[weewx-user] Publishing aggregate data, the topic is TOPIC/loop?

2019-09-03 Thread Rui Pinto
Hello!! 

These are my configurations for transmitting data through Weewx to the MQTT 
broker:

[StdRESTful]
...
[[MQTT]]
server_url = mqtt://username:password@localhost:1883/
topic = weather/default/default/VantagePro2/
unit_system = METRIC

aggregation = aggregate   

why the data is published to the TOPIC/loop? Is it because i'm publishing 
aggregate data so all the observations are pusblished in one go to the loop 
level?


Best Regards


-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/6b5a5a6b-d4b4-49fa-b6de-46709cf275a7%40googlegroups.com.


Re: [weewx-user] Re: Changing QoS when publishing to Mosquitto through Weewx

2019-09-03 Thread Rui Pinto
Thank you for responding!!

https://github.com/weewx/weewx/wiki/mqtt
The solution couldn't just be set the option retain to True?

Best Regards

vince  escreveu no dia segunda, 2/09/2019 à(s) 17:45:

> On Monday, September 2, 2019 at 9:11:01 AM UTC-7, Rui Pinto wrote:
>>
>> I have a Davis Vantage Pro2 station and i'm using Weewx to publish data
>> to an MQTT broker (Mosquitto).
>>
>> But i would like to know if it's possible to change the QoS.
>>
>>
>>
> My reading of the mqtt extension v0.19 sources vs. some paho-mqtt examples
> says 'no', but if you wanted to hack on your extension a little you might
> try finding the two lines that say mc.publish and add qos=1 (or 2) and see
> if that works. (untested)
>
>
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/0b26bd48-a107-443b-b5cb-5805975c8af1%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/0b26bd48-a107-443b-b5cb-5805975c8af1%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAHGxKCxfT%2Bsi-wGoqV0u4haAn-F4wKNfLh2k4VgMYuhmcB%2BG-A%40mail.gmail.com.


Re: [weewx-user] Re: MQTT Weewx authentication

2019-09-03 Thread Rui Pinto
Thank you for responding!!

https://github.com/weewx/weewx/wiki/mqtt
The solution couldn't just be set the option retain to True?

Best Regards

Xant  escreveu no dia terça, 3/09/2019 à(s)
06:20:

>
> I went through MAAANY hours in this issue... and the following is what
> works 4me.
>
> WeeWX conf:
>
> [[MQTT]]
> #X server_url = mqtt://test.mosquitto.org:1883/
> #X server_url = mqtt://broker.hivemq.com:1883/
> server_url = mqtt://[user:pw]@localhost:1883/
> topic = weather
> unit_system = US
> binding = archive, loop
> aggregation = aggregate
>
> Belchertown skin:
>
> # MQTT Websockets defaults
> mqtt_websockets_enabled = 1
> #X mqtt_websockets_host = test.mosquitto.org
> #X mqtt_websockets_port = 8080
> #X mqtt_websockets_host = broker.hivemq.com
> #X mqtt_websockets_port = 8000
> mqtt_websockets_host = [ur URL]
> mqtt_websockets_port = 9001
> mqtt_websockets_ssl = 0
> mqtt_websockets_topic = "weather/loop"
> #X disconnect_live_website_visitor = 180
>
> Uncomment the above as you wish. Try a free public MQTT (before local), as
> Mosquitto or HiveMQ as the above...
>
> Remember to set your router port forwarding as well...
>
> Xant
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/69663524-1a65-4058-95e2-a29eecda1a01%40googlegroups.com
> 
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAHGxKCzTapK8q335btmK4kNAGP0TCyR%2BRmp7oSCsd6LwE%2B%3DpeA%40mail.gmail.com.


[weewx-user] Changing QoS when publishing to Mosquitto through Weewx

2019-09-02 Thread Rui Pinto
Hello!!


I have a Davis Vantage Pro2 station and i'm using Weewx to publish data to 
an MQTT broker (Mosquitto).

But i would like to know if it's possible to change the QoS.

Best Regards.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/115bc8d5-d7c1-4df4-a61f-72b157a1b599%40googlegroups.com.


[weewx-user] Re: What is the data structured published to the MQTT broker with Weewx stdRESTful service

2019-09-02 Thread Rui Pinto
Another curiosity question:

- Why all the variables are published in floats?

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/731a6792-b211-4e49-b986-8e3b91afe204%40googlegroups.com.


[weewx-user] What is the data structured published to the MQTT broker with Weewx stdRESTful service

2019-09-02 Thread Rui Pinto
Hello!!

I have a Davis Vantage Pro2 station and i'm using Weewx to publish data to 
an MQTT broker (Mosquitto) and i would like to know if the data that i'm 
pusblishing to a specific topic is structured in JSON?


Best Regards.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/d3e0cdf6-1e3d-4384-af9b-cf610e0b10b3%40googlegroups.com.


[weewx-user] Re: MQTT Weewx authentication

2019-09-02 Thread Rui Pinto
Thank you very much for the help!!


Another question:

- Is it possible to change the QoS of the MQTT client (weewx)?

quinta-feira, 29 de Agosto de 2019 às 12:08:13 UTC+1, Rui Pinto escreveu:
>
> Hello!!
>
> I'm trying to publish data to a topic in the Mosquitto broker through 
> authentication. 
> I succedd without authentication but i wanted to publish data with 
> authentication.
>
> I successfully changed the user and password in the mosquitto 
> configurations, but i don't know where do i put the username and password 
> in the Weewx configurations.
>
> I don't know if i have to put the username and password in the weew.conf 
> file...
> Here's my configuration of MQTT in Weewx.conf: 
>
> [StdRESTful]
> [[MQTT]]
>server_url = mqtt://localhost:1883/
>topic = weewx/default/default/VantagePro2
>unit_system = METRIC
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/cc0c2211-faf7-4e73-99f6-633d49f29f76%40googlegroups.com.


[weewx-user] MQTT Weewx authentication

2019-08-29 Thread Rui Pinto
Hello!!

I'm trying to publish data to a topic in the Mosquitto broker through 
authentication. 
I succedd without authentication but i wanted to publish data with 
authentication.

I successfully changed the user and password in the mosquitto 
configurations, but i don't know where do i put the username and password 
in the Weewx configurations.

I don't know if i have to put the username and password in the weew.conf 
file...
Here's my configuration of MQTT in Weewx.conf: 

[StdRESTful]
[[MQTT]]
   server_url = mqtt://localhost:1883/
   topic = weewx/default/default/VantagePro2
   unit_system = METRIC

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/63673c7b-da3a-4e5f-b865-ce802dd01c5f%40googlegroups.com.


Re: [weewx-user] Re: Weewx SQLite storage

2019-07-09 Thread Rui Pinto
Thank you for answering!!

I have another question...
Is it possible ti know through the weather console data, the batterry live
of the console?

Thank you.

vince  escreveu em qua, 3/07/2019 às 15:38 :

> On Wednesday, July 3, 2019 at 7:10:58 AM UTC-7, Rui Pinto wrote:
>
>> Is it possible to specify to the Weewx software where i want to save the
>> SQLite Database?
>>
>>
>>
> Personally, I'd just use a symlink to point /home/weewx/archive to a
> location on the hard drive.
>
> This is for setup.py installations. If you used a dpkg installation, the
> location it saves the sqlite db is a little different.
>
> You might also look in weewx.conf for a SQLITE_ROOT parameter very close
> to the bottom of the file, and use an absolute path there.
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/b0461ba9-5f7b-4367-a998-62bbbd098b35%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/b0461ba9-5f7b-4367-a998-62bbbd098b35%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAHGxKCzJ41w456ku1fbeQPuMAuaK%2BLPuOwuH%3DZ34TaJ2xQctdQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Weewx SQLite storage

2019-07-03 Thread Rui Pinto
Hi!! I have a Davis Vantage Pro2 station and i'm using Weewx to save data 
aswell as displaying it using MQTT, Influxdb and Grafana.

I'm using a raspberry PI to connect to the station and I Weewx it's 
installed in the raspberry pi. The influx database is on another machine.
But Weewx stores automatically in a SQLite database locally, in other 
words, on the raspberry pi.

I want to store in a SQLite also, don't get me wrong but i don't want to 
store that data on the SD Card of the RaspberryPI, i instead want to store 
on a hard drive.

Is it possible to specify to the Weewx software where i want to save the 
SQLite Database?

Thank you.
Best Regards.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/3537dc1b-14c3-46d6-935f-d8a292dd52a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Weather Variables (Davis Vantage Pro 2)

2019-06-26 Thread Rui Pinto
Hello!! I have a Davis Vantage Pro2 station and i utilized Weewx to do 
interface with the console to get the data from it.
It's working fine. The only problem is that i don't understand what some 
values of the variables actually mean (for example: rxCheckPercent, Sunset, 
ForecastRule, ForecastIcon, etc).
If anyone knows where can i get the information to this variables would be 
great.

Here's an JSON example of the variables of the station:

"windSpeed10_kph": "5.78725803977",
"monthET": "1.32",
"highUV": "0.0",
"cloudbase_meter": "773.082217509",
"leafTemp1_C": "8.333",
"rainAlarm": "0.0",
"pressure_mbar": "948.046280104",
"rain_cm": "0.0",
"highRadiation": "0.0",
"interval_minute": "5.0",
"barometer_mbar": "1018.35464712",
"yearRain_cm": "17.200043",
"consBatteryVoltage_volt": "4.72",
"dewpoint_C": "2.07088485785",
"insideAlarm": "0.0",
"inHumidity": "29.0",
"soilLeafAlarm4": "0.0",
"sunrise": "1492489200.0",
"windGust_kph": "9.6560886",
"heatindex_C": "3.556",
"dayRain_cm": "0.0",
"lowOutTemp": "38.3",
"outsideAlarm1": "0.0",
"forecastIcon": "8.0",
"outsideAlarm2": "0.0",
"windSpeed_kph": "3.95409343049",
"forecastRule": "40.0",
"windrun_km": "1.07449640224",
"outHumidity": "90.0",
"stormStart": "1492207200.0",
"inDewpoint": "45.1231125123",
"altimeter_mbar": "1016.62778614",
"windchill_C": "3.556",
"appTemp_C": "1.26842313302",
"outTemp_C": "3.556",
"windGustDir": "275.0",
"extraAlarm1": "0.0",
"extraAlarm2": "0.0",
"extraAlarm3": "0.0",
"extraAlarm4": "0.0",
"extraAlarm5": "0.0",
"extraAlarm6": "0.0",
"extraAlarm7": "0.0",
"extraAlarm8": "0.0",
"humidex_C": "3.556",
"rain24_cm": "0.8800022",
"rxCheckPercent": "87.979167",
"hourRain_cm": "0.0",
"inTemp_C": "26.83",
"watertemp": "8.333",
"trendIcon": "59.7350993377",
"soilLeafAlarm2": "0.0",
"soilLeafAlarm3": "0.0",
"usUnits": "16.0",
"soilLeafAlarm1": "0.0",
"leafWet4": "0.0",
"txBatteryStatus": "0.0",
"yearET": "4.88",
"monthRain_cm": "2.9400074",
"UV": "0.0",
"rainRate_cm_per_hour": "0.0",
"dayET": "0.0",
"dateTime": "1492467300.0",
"windDir": "283.55437192",
"stormRain_cm": "1.7200043",
"ET_cm": "0.0",
"sunset": "1492538940.0",
"highOutTemp": "38.4",
"radiation_Wpm2": "0.0"

Thank You!!


-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/ebd83f17-71fc-41c6-bffe-31190868c2cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.