Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

MAC Evocam

Hardware/software/hints and tips/discussion/webcam links etc
Post Reply
UncleBuck
Posts: 43
Joined: Sat 29 Dec 2012 10:27 pm
Weather Station: Davis VP2+
Operating System: MAC Mini - OSX El Capitan
Location: Victoria, Australia

MAC Evocam

Post by UncleBuck »

Does anyone here use Evocam on MAC?
I have been using it for a while now and have a script I use (that runs within the app) to overlay the current conditions using the realtime.txt data.
If anyone is interested, I can post it here with some basic instructions on how to set it all up.
braecottage
Posts: 1
Joined: Fri 29 Dec 2017 4:17 pm
Weather Station: Davis VP2
Operating System: OS X

Re: MAC Evocam

Post by braecottage »

Hi

I'm using Evocam for os x. Any pointers on how to overlay would be appreciated.

Thanks
Kevin
UncleBuck
Posts: 43
Joined: Sat 29 Dec 2012 10:27 pm
Weather Station: Davis VP2+
Operating System: MAC Mini - OSX El Capitan
Location: Victoria, Australia

Re: MAC Evocam

Post by UncleBuck »

Hi Kevin,
Sorry for the REALLY late reply on this one. Are you still interested in the overlay side of things using EvoCam?

Colin
UncleBuck
Posts: 43
Joined: Sat 29 Dec 2012 10:27 pm
Weather Station: Davis VP2+
Operating System: MAC Mini - OSX El Capitan
Location: Victoria, Australia

Re: MAC Evocam

Post by UncleBuck »

Thought I would post it here anyway, just in case there is anyone else who needs it.

First Steps:
Create 2 text items in the Evocam display, one called "Now" and the other called "Today".
Set up a new action that has a Time period: of "Always" and a When ever any of these conditions occur: as every 5 seconds. (you can set this to whatever time period suits you best)
Now create a Perform these actions: as "Run Script" and paste the following script into it:

Code: Select all

set theFile to "YOUR:PATH TO:realtime.txt"

set resultText to {}
set resultText to readAndSplitFile(theFile)
set nowText to item 1 of resultText & " " & item 2 of resultText & return & "Temp: " & item 3 of resultText & "c" & return & "Wind: " & item 7 of resultText & " km/h " & "from " & item 12 of resultText & return & "Rain Rate: " & item 9 of resultText & " mm/h" & return
set todayText to "TODAY" & return & "Max Temp: " & item 27 of resultText & "c @ " & item 28 of resultText & return & "Min Temp: " & item 29 of resultText & "c @ " & item 30 of resultText & return & "Max Gust: " & item 33 of resultText & " km/h @ " & item 34 of resultText & return & "Rain: " & item 10 of resultText & " mm"
tell application "EvoCam 5"
	tell document "Default.evocamsettings"
		set title of text item "Now" to nowText
		set title of text item "Today" to todayText
	end tell
end tell
--set text item delimiters to ""
on readFile(theFile)
	-- Convert the file to a string
	set theFile to theFile as string
	
	-- Read the file and return its contents
	return read file theFile
end readFile
on readAndSplitFile(theFile)
	-- Convert the file to a string
	set theFile to theFile as string
	
	-- Read the file using a specific delimiter and return the results
	return read file theFile using delimiter space
end readAndSplitFile
There are a few of things you need to change in the script....
1) Change "YOUR:PATH TO:realtime.txt" to point to the location of your realtime file making sure that you use the quotes and the colon format.
2) Change the document name (Default.evocamsettings) to the name of your Evocam document.
3) Change the units of measure to reflect what it is you use (metric or imperial).

Once you have set all this up and have it running, move the text fields (Now and Today) to suitable locations in your image display.
Hope that helps...

Colin.
Post Reply