Re: [weewx-user] Re: connect camera IP on belchertown skin

2019-11-21 Thread salinois

hi Armando

thank you for your help;

I go to call now the support of Samsung.

I come ba&ck to you after.

Patrick

Le 22/11/2019 à 05:07, Xant a écrit :

Patrick, Robert et all

In parallel direct emails, I already have provided all the possible 
"combinations" as to connect Samsung camera. As in my preliminafy 
post, there are a large range of cameras and capablities nowadays, 
which surpass the main field of this Forum.


I do acknoedge the hardshift difficulties, as I always have a Tech 
battle my own, but related question was already answred in my first 
and preliminary post (as it relates to WeeWX).


Now, it must rest, or to pursue OEM camera support resolution.
--
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/1384ccda-16ff-4026-a171-5e2d02fe2c19%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/9e9b6689-0b57-b69c-e635-37a1cbe885e0%40gmail.com.


Re: [weewx-user] Plot from 2 databases

2019-11-21 Thread peter
Thank you both, this is awesome!
I use NeoWX but customized it a little. I’ll add the binding part (wasn’t 
familiar what exactly it does). If I have further question I’ll ask. Thanks for 
now.

-- 
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/c78da3e1-1eee-4038-b4aa-7a862b78a700%40googlegroups.com.


Re: [weewx-user] Re: connect camera IP on belchertown skin

2019-11-21 Thread Xant
Patrick, Robert et all 

In parallel direct emails, I already have provided all the possible 
"combinations" as to connect Samsung camera. As in my preliminafy post, 
there are a large range of cameras and capablities nowadays, which surpass 
the main field of this Forum. 

I do acknoedge the hardshift difficulties, as I always have a Tech battle 
my own, but related question was already answred in my first and 
preliminary post (as it relates to WeeWX). 

Now, it must rest, or to pursue OEM camera support resolution.

-- 
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/1384ccda-16ff-4026-a171-5e2d02fe2c19%40googlegroups.com.


Re: [weewx-user] Plot from 2 databases

2019-11-21 Thread vince
On Thursday, November 21, 2019 at 3:41:50 PM UTC-8, Thomas Keffer wrote:
>
> There's a whole section in the Customizing Guide dedicated to the topic. 
> See *Using multiple bindings 
> *.
>
> On Thu, Nov 21, 2019 at 11:58 AM peter > 
> wrote:
>
>> I managed to run 2 weewx instances taking data from the WeatherFlow and 
>> Davis stations. Data is stored to 2 database files.
>> Is there a (simple) way to generate a plot (e.g. temperature, wind) that 
>> combines the data from both database files? I would like to show how well 
>> the data from both stations match.
>>
>>
I might add that the popular Belchertown skin does 'not' support multiple 
databases on one chart if I remember correctly from email with Pat a number 
of weeks ago.

So it might depend a little on which skin(s) you are fiddling with.

FWIW, it's easy to do in grafana over influxdb :-)

This is rain measured on a VP2 and two WF Sky units, one mounted low, one 
mounted high.


-- 
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/4cd6ed4c-afa6-47ac-a24e-bdf757cfe0a8%40googlegroups.com.


Re: [weewx-user] Plot from 2 databases

2019-11-21 Thread Thomas Keffer
There's a whole section in the Customizing Guide dedicated to the topic.
See *Using multiple bindings
*.

On Thu, Nov 21, 2019 at 11:58 AM peter  wrote:

> I managed to run 2 weewx instances taking data from the WeatherFlow and
> Davis stations. Data is stored to 2 database files.
> Is there a (simple) way to generate a plot (e.g. temperature, wind) that
> combines the data from both database files? I would like to show how well
> the data from both stations match.
> I could do it off-line by converting to csv and plot that but would prefer
> to have plots in realtime.
> Thanks!
>
> --
> 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/49a1ffb4-1d14-4984-a3e6-45b0f22c8bde%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/CAPq0zECxrLx8N_NcA7O-qM_HnmXhSUfV7%3D16YS1O%3D2tZbdYCbg%40mail.gmail.com.


Re: [weewx-user] Re: Add additional rain gauge via second data source

2019-11-21 Thread engolling
Hello,

I checked my image generation settings again and I also tried to check the 
imagegenerator.py file but I did not find any reason why the conversion to 
"mm" is not applied or at least the native database unit "cm" is not 
applies.

I would be glad, if someone can give me a hint where this could come from 
and what is the best way to debug.

Regards,
engolling

Am Dienstag, 5. November 2019 22:18:59 UTC+1 schrieb engolling:
>
> Hello to all,
>
> I got another question. The import of additional rain works fine now.
> So if a add the following tag to my template: 
> $day.Rain_RG11.sum
> I get the correct value in my preselected unit. (Database is metric and my 
> default unit for group_rain is "mm")
>
> I'm also generating two graphs with the following code:
> [[[dayrain]]]
> # Make sure the y-axis increment is at least 0.02 for the 
> rain plot
> yscale = None, None, 0.02
> plot_type = bar
> rain
> aggregate_type = sum
> aggregate_interval = 3600
> label = Niederschlag (Stundenwerte)
> [[[dayrain_RG11]]]
> # Make sure the y-axis increment is at least 0.02 for the 
> rain plot
> yscale = None, None, 0.02
> plot_type = bar
> rain_RG11
> aggregate_type = sum
> aggregate_interval = 3600
> label = Niederschlag (Stundenwerte)
>
> Here I get the following images (do not look at the actual bar values - 
> they are not representative and result due to testing):
>
> My self added rain source generates correct values but it does not display 
> the unit and the values which are plotted are seeming to be in the native 
> unit [cm] as it is stored in the database.
> Does anybody has an idea what could be the matter here? Tags are working 
> fine, but not the image generation.
>
> Thanks in advance for your answers.
>
> Regards,
> engolling
>
>
> Am Dienstag, 28. Mai 2019 00:20:07 UTC+2 schrieb gjr80:
>>
>> On Tuesday, 28 May 2019 06:52:22 UTC+10, engolling wrote:
>>>
>>> So I started off with the noob variant...
>>> https://github.com/menachers/WeatherDuino/tree/master/WeeWx_Plugin
>>>
>>
>> That looks like it will work, but be aware that if the record you are 
>> augmenting is in anything other than US customary units no conversion will 
>> be applied (this may be fine given your current setup but who knows how it 
>> may change in the future). Nothing to worry about if you are going to 
>> rewrite the code anyway.
>>  
>>
>>> I will change it to the sophisticated procedure you proposed. 
>>> As I got you right
>>> # express our rainfall value as a ValueTuple
>>> rainfall_vt = weewx.units.ValueTuple(rainfall, 'mm', 'group_rain')
>>> I have to generate a tuple with the variable holding the actual value, 
>>> followed by the unit of the signal as it can be found in the units.py dict 
>>> and ending with the unit group which it belongs to.
>>>
>>
>> Correct. The ValueTuple is the basis of the WeeWX system for unit 
>> conversion; it brings together the value, the units used and the unit group 
>> to which it belongs. When WeeWX needs to convert the value to some other 
>> units or to the units used in a particular unit system (US, Metric or 
>> MetricWX) the ValueTuple has the core information used to determine how to 
>> do the conversion. You might want to look at the class ValueTuple in 
>> bin/weewx/units.py 
>> . 
>> the other good thing about ValueTuple based conversion is that it will 
>> handle the case where the data value is None - note how in the simple 
>> approach I outlined we had to take care of the case where the data value 
>> may be None. 
>>
>> Gary
>>
>

-- 
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/9ce76a4e-3c6b-4a2b-bb2c-717bf9963b80%40googlegroups.com.


[weewx-user] Plot from 2 databases

2019-11-21 Thread peter
I managed to run 2 weewx instances taking data from the WeatherFlow and 
Davis stations. Data is stored to 2 database files.
Is there a (simple) way to generate a plot (e.g. temperature, wind) that 
combines the data from both database files? I would like to show how well 
the data from both stations match.
I could do it off-line by converting to csv and plot that but would prefer 
to have plots in realtime.
Thanks!

-- 
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/49a1ffb4-1d14-4984-a3e6-45b0f22c8bde%40googlegroups.com.


Re: [weewx-user] Re: Public webpage using MQTT from weewx

2019-11-21 Thread Greg Troxel
vince  writes:

> On Thursday, November 21, 2019 at 8:30:34 AM UTC-8, Greg Troxel wrote:
>
>> I don't follow "password-protected" entirely.  
>>
>
> oh - I meant protecting the Internet MQTT broker from nefarious 
> denial-of-service from the script kiddies.
>
> The LAN broker will need to forward/post to the Internet broker instance. 
> You want to make sure it's just 'you' who can post data there, so enabling 
> the MQTT username/password setup on the Internet broker will help stop the 
> bad guys from messing with your data.  The LAN MQTT broker can (probably) 
> be open for writes without username/password needed, depending on how you 
> like to set your LAN up.

I understand now.  It was obvious to me that writes must be
authenticated and thus I thought we were talking about allowing
unauthenticated reads.  However,  it is not obvious to everyone and
excellent advice to someone starting out.

> My setup at home has a bunch of pi and arduinos and sensors posting to 
> local MQTT without any passwords needed.  When I had the Internet MQTT 
> broker being bridged to (as MQTT uses the term) from the LAN, I had just 
> 'that' one requiring a username/password, and also had some packet filters 
> etc. limiting the incoming MQTT traffic to be from the pretty stable public 
> ip address my home LAN NAT's out to Internet on via my service provider.

Makes sense.  I have set up TLS on both home and public broker and also
username/passwords and acls.  All of my sensors have credentials that
allows them to write to part of the sensor subspace.   Indeed, this is
much more work.

> But no I didn't mean webserver username+pass.  Sorry for any confusion 
> there.

No problem, and I was misunderstanding more than you -- I think it's
actually been a very useful discussion.  To sum up for the OP, assuming
they want to do something like Belchertown

  set up an MQTT broker on a public/stable IP address

  configure acl to require user/password for writing, to avoid kiddies
  writing to your topics and also storing warez fragements in various
  retained topics, as happened with writable anonymous FTP.  For extra
  credit, set up TLS and only do password-controlled access over TLS to
  prevent password sniffing.

  allow anonymous reads of the data that you intend to be used by the
  skin -- and only that data.

  Keep in mind that because MQTT ends up being the way you connect
  everything to everything, almost all data in it is sensitive with
  respect to writes and some data is sensitive with respect to reads.
  

-- 
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/rmimucpjf39.fsf%40s1.lexort.com.


Re: [weewx-user] Re: Public webpage using MQTT from weewx

2019-11-21 Thread vince
On Thursday, November 21, 2019 at 8:30:34 AM UTC-8, Greg Troxel wrote:

> I don't follow "password-protected" entirely.  
>

oh - I meant protecting the Internet MQTT broker from nefarious 
denial-of-service from the script kiddies.

The LAN broker will need to forward/post to the Internet broker instance. 
You want to make sure it's just 'you' who can post data there, so enabling 
the MQTT username/password setup on the Internet broker will help stop the 
bad guys from messing with your data.  The LAN MQTT broker can (probably) 
be open for writes without username/password needed, depending on how you 
like to set your LAN up.

My setup at home has a bunch of pi and arduinos and sensors posting to 
local MQTT without any passwords needed.  When I had the Internet MQTT 
broker being bridged to (as MQTT uses the term) from the LAN, I had just 
'that' one requiring a username/password, and also had some packet filters 
etc. limiting the incoming MQTT traffic to be from the pretty stable public 
ip address my home LAN NAT's out to Internet on via my service provider.

But no I didn't mean webserver username+pass.  Sorry for any confusion 
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/e83fe789-abd9-4cd4-bced-1bd1a67d695d%40googlegroups.com.


Re: [weewx-user] Re: Public webpage using MQTT from weewx

2019-11-21 Thread Greg Troxel
vince  writes:

> On Wednesday, November 20, 2019 at 9:27:02 PM UTC-8, Radek Dohnal wrote:
>
>> What is the safe way how to use public webpage with my meteo data (on 
>> public site) together with weex sending MQTT data on my local home network ?
>> I would like to use MQTT from my weewx (running on my home network). But I 
>> dont wont to open any port from my home network to the internet.
>> Now Im using FTP to transfer data (HTML_ROOT folder from my local RaspPI 
>> where weewx runnig) to public site where i rent a space for my webpages. 
>> But without MQTT.
>
> It depends on whether you want realtime MQTT-based data (ie, enabling the 
> realtime-ish side of Belchertown).

Indeed, I did not get this point in the question.  Adding local mqtt
does not affect the remote skin at all.

> If you want realtime MQTT data it gets more complicated. As Greg said, 
> you'd have to run a MQTT broker on your public webserver.  'Definitely' set 
> that up to be password-protected on the Internet.   Also agree with Greg 
> that you can have your LAN MQTT broker forward to your Internet one pretty 
> easily.

I don't follow "password-protected" entirely.  As I see it (but haven't
done it):

  you have html someplace for the skin, and it may or may not have a
  password.  Typically these do not have access control.

  The javascript from the skin has to talk to an mqtt broker that has
  the data.  So one has choices (assuming one is writing code):

1) let the mqtt data be accessible without a password

2) use a static username/password and put it in the skin.  This is
sort of like an API key in web parlance.

3) some scheme of new username/passwords in each page view from the
skin

I suspect most people running skins that get live mqtt data are doing
option 1, that almost all readers think option 3 is nuts, and that zero
people are doing it.

-- 
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/rmisgmhkx96.fsf%40s1.lexort.com.


[weewx-user] Re: Public webpage using MQTT from weewx

2019-11-21 Thread vince
On Wednesday, November 20, 2019 at 9:27:02 PM UTC-8, Radek Dohnal wrote:

> What is the safe way how to use public webpage with my meteo data (on 
> public site) together with weex sending MQTT data on my local home network ?
> I would like to use MQTT from my weewx (running on my home network). But I 
> dont wont to open any port from my home network to the internet.
> Now Im using FTP to transfer data (HTML_ROOT folder from my local RaspPI 
> where weewx runnig) to public site where i rent a space for my webpages. 
> But without MQTT.
>

It depends on whether you want realtime MQTT-based data (ie, enabling the 
realtime-ish side of Belchertown).

If all you want to do is display a static page based on MQTT data, weewx 
can of course do that and you can rsync or ftp the data up to a 
public-facing website on your service provider.

If you want realtime MQTT data it gets more complicated. As Greg said, 
you'd have to run a MQTT broker on your public webserver.  'Definitely' set 
that up to be password-protected on the Internet.   Also agree with Greg 
that you can have your LAN MQTT broker forward to your Internet one pretty 
easily.

That said, I did not find a combination for Belchertown specifically that 
let me run on LAN and see the same nice dynamic updates on Internet, so I 
eventually turned that off and just run a static weewx site in both places, 
synced via rsync.

-- 
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/c5f9beb6-5801-4265-9685-57fff20a9982%40googlegroups.com.


Re: [weewx-user] Public webpage using MQTT from weewx

2019-11-21 Thread Greg Troxel
Radek Dohnal  writes:

> What is the safe way how to use public webpage with my meteo data (on 
> public site) together with weex sending MQTT data on my local home network ?
> I would like to use MQTT from my weewx (running on my home network). But I 
> dont wont to open any port from my home network to the internet.
> Now Im using FTP to transfer data (HTML_ROOT folder from my local RaspPI 
> where weewx runnig) to public site where i rent a space for my webpages. 
> But without MQTT.

An approach would be to run an mqtt broker on a VPS.  Basically you are
using a remote webserver on a real/stable IP address and it would make
sense to do the same with MQTT.

It may be that you have a "web server" that you can't run programs on.

Note that you can (depending on broker) bridge from local to a remote
mqtt server.

-- 
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/rmi5zjdmhbo.fsf%40s1.lexort.com.


[weewx-user] Re: connect camera IP on belchertown skin

2019-11-21 Thread Robert Anthony Pitera
Patrick -

Try one of these URLs


For MJPEG - http://IPADDRESS/cgi-bin/video.cgi?msubmenu=mjpg

For JPG - http://IPADDRESS/cgi-bin/video.cgi?msubmenu=jpg

and see if they work for you with the Samsung.



On Wednesday, November 20, 2019 at 1:16:56 PM UTC-5, Patrick Tranchant 
wrote:
>
> hello
> thanks for your response
> My Camera IP is a Samsung SND-6084, but I tried more configurations, and I 
> couldn't the good solution, I am bad.
>
> Patrick
>
> On Thursday, October 24, 2019 at 8:12:24 PM UTC+2, Patrick Tranchant wrote:
>>
>> hello PAT
>>
>> I am searching to connect a camera IP on my skin, I know somebody done it 
>> but I can not find anymore.
>> do you know to do it ?
>> thanks
>>
>> Patrick
>>
>

-- 
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/e5c8f3fc-c1e7-43c7-bbfe-2a3a9bad3146%40googlegroups.com.