PlotMorph package updates & Weather stations

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

PlotMorph package updates & Weather stations

timrowledge
I’ve just uploaded a new version of PlotMorph (MCHttpRepository
    location: 'http://www.squeaksource.com/PlotMorph'
    user: ''
    password: ‘’) or http://www.squeaksource.com/PlotMorph/PlotMorph-tpr.39.mcz

This adds a new subclass, TimeDataPlotMorph, which uses Morphic stepping to have the too-old data (as determined by the plotDuration ivar) removed and the plot bounds updated. This has made nice scrolling plots of my weather station data. It certainly isn’t polished, let alone finished, so feel free to improve it.

There’s also a new release of ‘Weather station for Squeak’ (MCHttpRepository
    location: 'http://www.squeaksource.com/WeatherStation'
    user: ''
    password: ‘’) or http://www.squeaksource.com/WeatherStation/WeatherStation-tpr.7.mcz

Generally the MQTT & weather station code is running extremely reliably; it’s running live in my development image as I add new stuff l(ike the BarometerMorph that is the result of a lot of donated time by Bob Arning). I haven’t had to change or restart the mqtt client in four or five weeks.

The BarometerMorph and its sort-of abstract parent RotaryDialMorph should someday be good enough to move to the main Morph category and provide nice roundy-roundy data displaying for all, for things like pressure, humidity, temperature, speed, rpms, time, sound levels, voltage and what have you.

A rotary indicator is a quite ‘interesting’ project that deserve more attention in my opinion. There are so many possible options for the displaying, the look of the dial(s), the indicator ‘needle’ and so on. I’d say you could make a pretty good thesis project out of simply characterising them, let alone implementing a good scheme for parameterising them for code.

tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
A conscience is what hurts when all your other parts feel so good.



Reply | Threaded
Open this post in threaded view
|

Re: PlotMorph package updates & Weather stations

Hannes Hirzel
Thank you for the interesting report, Tim.

Could you please add a nice screen shot as Tobias recently has
increased the size limit for attachments?

--Hannes

On 4/12/17, tim Rowledge <[hidden email]> wrote:

> I’ve just uploaded a new version of PlotMorph (MCHttpRepository
>     location: 'http://www.squeaksource.com/PlotMorph'
>     user: ''
>     password: ‘’) or
> http://www.squeaksource.com/PlotMorph/PlotMorph-tpr.39.mcz
>
> This adds a new subclass, TimeDataPlotMorph, which uses Morphic stepping to
> have the too-old data (as determined by the plotDuration ivar) removed and
> the plot bounds updated. This has made nice scrolling plots of my weather
> station data. It certainly isn’t polished, let alone finished, so feel free
> to improve it.
>
> There’s also a new release of ‘Weather station for Squeak’ (MCHttpRepository
>     location: 'http://www.squeaksource.com/WeatherStation'
>     user: ''
>     password: ‘’) or
> http://www.squeaksource.com/WeatherStation/WeatherStation-tpr.7.mcz
>
> Generally the MQTT & weather station code is running extremely reliably;
> it’s running live in my development image as I add new stuff l(ike the
> BarometerMorph that is the result of a lot of donated time by Bob Arning). I
> haven’t had to change or restart the mqtt client in four or five weeks.
>
> The BarometerMorph and its sort-of abstract parent RotaryDialMorph should
> someday be good enough to move to the main Morph category and provide nice
> roundy-roundy data displaying for all, for things like pressure, humidity,
> temperature, speed, rpms, time, sound levels, voltage and what have you.
>
> A rotary indicator is a quite ‘interesting’ project that deserve more
> attention in my opinion. There are so many possible options for the
> displaying, the look of the dial(s), the indicator ‘needle’ and so on. I’d
> say you could make a pretty good thesis project out of simply characterising
> them, let alone implementing a good scheme for parameterising them for code.
>
> tim
> --
> tim Rowledge; [hidden email]; http://www.rowledge.org/tim
> A conscience is what hurts when all your other parts feel so good.
>
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: PlotMorph package updates & Weather stations

timrowledge

On 13-04-2017, at 2:59 AM, H. Hirzel <[hidden email]> wrote:

Thank you for the interesting report, Tim.

Could you please add a nice screen shot as Tobias recently has
increased the size limit for attachments?

A screen shot here, or on the squeaksource swiki page? I can’t see any way to add an image to those tinyswikis at the moment but it would be a nice thing to find out.

The air pressure plot and New!Shiny!Barometer!! (Thanks for the help Bob)
Humidity - 
The yellow line is for our guestroom, which always seems the coolest room in the house. Notice how the humidity plummets when we turn on the dehumidifier and how after a couple of hours that also works its way to the other sensor traces at the other end of the house (my office, currently)

I’ll be working on nice dials for the humidity and temp soon since they ought to be fairly simple. 
At some point I need to do something about keeping the data more properly than simply a huge and growing OrderedCollection. I do have a simplistic JSon exporter/importer for it but a proper DB like Magma would be more appropriate.

tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
Performance is easier to add than clarity.




Reply | Threaded
Open this post in threaded view
|

PlotMorph package updates & Weather stations

Louis LaBrunda
Hey Tim,

Looks great!!

Lou

On Thu, 13 Apr 2017 10:39:08 -0700, tim Rowledge <[hidden email]> wrote:

>
>> On 13-04-2017, at 2:59 AM, H. Hirzel <[hidden email]> wrote:
>>
>> Thank you for the interesting report, Tim.
>>
>> Could you please add a nice screen shot as Tobias recently has
>> increased the size limit for attachments?
>
>A screen shot here, or on the squeaksource swiki page? I can’t see any way to add an image to those tinyswikis at the moment but it would be a nice thing to find out.
>
>The air pressure plot and New!Shiny!Barometer!! (Thanks for the help Bob)
>
>Humidity -
>
>The yellow line is for our guestroom, which always seems the coolest room in the house. Notice how the humidity plummets when we turn on the dehumidifier and how after a couple of hours that also works its way to the other sensor traces at the other end of the house (my office, currently)
>
>I’ll be working on nice dials for the humidity and temp soon since they ought to be fairly simple.
>At some point I need to do something about keeping the data more properly than simply a huge and growing OrderedCollection. I do have a simplistic JSon exporter/importer for it but a proper DB like Magma would be more appropriate.
>
>tim
--
Louis LaBrunda
Keystone Software Corp.
SkypeMe callto://PhotonDemon


Reply | Threaded
Open this post in threaded view
|

Re: PlotMorph package updates & Weather stations

Chris Muller-3
In reply to this post by timrowledge
Gorgeous needle!  I am going to have to steal that..  :)

On Thu, Apr 13, 2017 at 12:39 PM, tim Rowledge <[hidden email]> wrote:

>
> On 13-04-2017, at 2:59 AM, H. Hirzel <[hidden email]> wrote:
>
> Thank you for the interesting report, Tim.
>
> Could you please add a nice screen shot as Tobias recently has
> increased the size limit for attachments?
>
>
> A screen shot here, or on the squeaksource swiki page? I can’t see any way
> to add an image to those tinyswikis at the moment but it would be a nice
> thing to find out.
>
> The air pressure plot and New!Shiny!Barometer!! (Thanks for the help Bob)
> Humidity -
> The yellow line is for our guestroom, which always seems the coolest room in
> the house. Notice how the humidity plummets when we turn on the dehumidifier
> and how after a couple of hours that also works its way to the other sensor
> traces at the other end of the house (my office, currently)
>
> I’ll be working on nice dials for the humidity and temp soon since they
> ought to be fairly simple.
> At some point I need to do something about keeping the data more properly
> than simply a huge and growing OrderedCollection. I do have a simplistic
> JSon exporter/importer for it but a proper DB like Magma would be more
> appropriate.
>
> tim
> --
> tim Rowledge; [hidden email]; http://www.rowledge.org/tim
> Performance is easier to add than clarity.
>
>
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: PlotMorph package updates & Weather stations

timrowledge

> On 13-04-2017, at 6:27 PM, Chris Muller <[hidden email]> wrote:
>
> Gorgeous needle!  I am going to have to steal that..  :)

Well when you do, please spend some time to try to parameterise the details; things like the scale of the fish-tail, the thickness of the bar, the location of the arrow head along the bar, the pointedness of the arrow, maybe adding a way to make a fake edge-reflection, perhaps even a shadow, alternate heads & tails… There’s so many options to be explored.


tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
Fractured Idiom:- RESPONDEZ S'IL VOUS PLAID - Honk if you're Scots



Reply | Threaded
Open this post in threaded view
|

Re: PlotMorph package updates & Weather stations

timrowledge
Cute Thermometer - 


This is fun :-)

tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
There are no stupid questions. But, there are a lot of inquisitive idiots.




Reply | Threaded
Open this post in threaded view
|

Re: PlotMorph package updates & Weather stations

Nicolas Cellier


2017-04-14 7:19 GMT+02:00 tim Rowledge <[hidden email]>:
Cute Thermometer - 


This is fun :-)


 
tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
There are no stupid questions. But, there are a lot of inquisitive idiots.

Ah above sentence gives me a right to ask ;)
12°C... I see...
Tim, do you store fruits and cheese in the guest room, or do you store guests in the cold cellar?



Reply | Threaded
Open this post in threaded view
|

Re: PlotMorph package updates & Weather stations

timrowledge

On 13-04-2017, at 11:22 PM, Nicolas Cellier <[hidden email]> wrote:

Tim, do you store fruits and cheese in the guest room, or do you store guests in the cold cellar?

You say that like they are a pair of competing hypotheses…

Current conditions -
The Barometer now has a secondary needle used to mark the last ‘read by user’ value. Typically on physical barometers the owner taps the glass gently to relieve the mechanical frictions and get the needle to move to the current value, then mutters something about how the weather just isn’t what it used to be, then twists the little knob (shown here as a near-as-I-can-get gold circle) to align the last-reading needle with the live reading needle. For the morph I made a d-click do the equivalent lining up.

tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
"Bother!" said Pooh, searching for the $10m winning lottery ticket.




Reply | Threaded
Open this post in threaded view
|

Re: PlotMorph package updates & Weather stations

Bob Arning-2

I was thinking you might break the purely analog mode and add small indicators automatically noting recent values (maybe 1, 4 and 12 hours)


On 4/14/17 1:32 PM, tim Rowledge wrote:
The Barometer now has a secondary needle used to mark the last ‘read by user’ value. Typically on physical barometers the owner taps the glass gently to relieve the mechanical frictions and get the needle to move to the current value, then mutters something about how the weather just isn’t what it used to be, then twists the little knob (shown here as a near-as-I-can-get gold circle) to align the last-reading needle with the live reading needle. For the morph I made a d-click do the equivalent lining up.




Reply | Threaded
Open this post in threaded view
|

Re: PlotMorph package updates & Weather stations

timrowledge

> On 14-04-2017, at 11:05 AM, Bob Arning <[hidden email]> wrote:
>
> I was thinking you might break the purely analog mode and add small indicators automatically noting recent values (maybe 1, 4 and 12 hours)

I’ve wondered about good ways of doing this for some time. One idea that keeps seeming like a nice trick is some sort of ‘fading needle shadow’. Imagine that the needle gently sprays the dial with a faint mist of color that fades over time. If the needle stays in the same place for a long time there would be a fairly saturated ’shadow’ built up. If it then moved the ’spray shadow’ would start to appear under the new location and the prior color would gradually fade away.

This would provide a fairly quickly comprehendible trace of recent conditions based on the hue saturation, I think. A wide sector of faint color would indicate that things had been moving around a lot; a fairly sharp line would indicate the converse. I imagine it could be implemented with a secondary ImageMorph overlaying the main dial morph and some combinations of blending and so on.


tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
Fractured Idiom:- ALOHA OY - Love; greetings; farewell; from such a pain you should never know



Reply | Threaded
Open this post in threaded view
|

Re: PlotMorph package updates & Weather stations

timrowledge
And here’s a compass for the wind direction - 
that needle isn’t too good though. That’s done with a balloon canvas at aaLevel:4. 

tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
Machine-independent:  Does not run on any existing machine.