Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Alarm Clock Sync from phone to PC?

If you have a question or need help, this is the place to be.
Post Reply
StgRawrface
Posts: 22
Joined: Sat Aug 23, 2014 2:40 pm

Alarm Clock Sync from phone to PC?

Post by StgRawrface »

So I was wondering how- if at all- it would be possible to set my phone alarm, and have it sync to my computer via internet somehow, and then when the alarm goes off, my computer wakes me up, plays music, tells me notification count, ect.
eirik226
Experienced User
Posts: 142
Joined: Wed Nov 07, 2012 5:22 pm

Re: Alarm Clock Sync from phone to PC?

Post by eirik226 »

Hey,

I'm actually trying to do something like this myself, but I have not started with it yet so not sure if I'll be able to do it.

However, I think the easiest way is to make a web page and use the web server plugin to control Eventghost and stuff and have a alarm-clock there. And you can visit this web page from your phone, tablet or PC and set the alarm clock from there.

Anyway, what you want to do should be doable, but would require scripting I think.
StgRawrface
Posts: 22
Joined: Sat Aug 23, 2014 2:40 pm

Re: Alarm Clock Sync from phone to PC?

Post by StgRawrface »

See, after thinking about it I decided to use tasker to send a push to my computer from my phone when an alarm started, and have the push start something on my computer with an alarm sound, and then when the alarm is over, have it send another push that would make my computer tell me the weather, ect.
eirik226
Experienced User
Posts: 142
Joined: Wed Nov 07, 2012 5:22 pm

Re: Alarm Clock Sync from phone to PC?

Post by eirik226 »

That sounds great - I'll look into that myself!
StgRawrface
Posts: 22
Joined: Sat Aug 23, 2014 2:40 pm

Re: Alarm Clock Sync from phone to PC?

Post by StgRawrface »

The only problem I have found is that I can't get suntracker plugin to allow me to just hear the weather. I may be using it wrong, or not, as I only found out about sun tracker yesterday and need to learn how the variables and such work
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Alarm Clock Sync from phone to PC?

Post by krambriw »

I wrote some simple scripts earlier for this purpose, maybe that could be useful. Obviously you need to add both the Speech and the SunTracker plugin to your configuration.

BestR Walter

Code: Select all

condition = eg.plugins.Suntracker.GetCurrentCondition()
weather = 'The current weather is '+condition['text']
temp = 'The temperature is '+condition['temp']+' degrees'  

eg.plugins.Speech.TextToSpeech(u'Microsoft Anna - English (United States)', 0, weather, 10, 100)
eg.plugins.Speech.TextToSpeech(u'Microsoft Anna - English (United States)', 0, temp, 0, 100)

Code: Select all

m = eg.plugins.Suntracker.GetForecasts()
today = m[0]
tomorrow = m[1]

weather_today = 'The forecast for today is '+today['text']+'. High temperature at '+today['high']+' and low at '+today['low']
weather_tomorrow = 'The forecast for tomorrow is '+tomorrow['text']+'. High temperature at '+tomorrow['high']+' and low at '+tomorrow['low']

eg.plugins.Speech.TextToSpeech(u'Microsoft Anna - English (United States)', 0, weather_today, 0, 100)
eg.plugins.Speech.TextToSpeech(u'Microsoft Anna - English (United States)', 0, weather_tomorrow, 0, 100)
StgRawrface
Posts: 22
Joined: Sat Aug 23, 2014 2:40 pm

Re: Alarm Clock Sync from phone to PC?

Post by StgRawrface »

krambriw wrote:I wrote some simple scripts earlier for this purpose, maybe that could be useful. Obviously you need to add both the Speech and the SunTracker plugin to your configuration.

BestR Walter

Code: Select all

condition = eg.plugins.Suntracker.GetCurrentCondition()
weather = 'The current weather is '+condition['text']
temp = 'The temperature is '+condition['temp']+' degrees'  

eg.plugins.Speech.TextToSpeech(u'Microsoft Anna - English (United States)', 0, weather, 10, 100)
eg.plugins.Speech.TextToSpeech(u'Microsoft Anna - English (United States)', 0, temp, 0, 100)

Code: Select all

m = eg.plugins.Suntracker.GetForecasts()
today = m[0]
tomorrow = m[1]

weather_today = 'The forecast for today is '+today['text']+'. High temperature at '+today['high']+' and low at '+today['low']
weather_tomorrow = 'The forecast for tomorrow is '+tomorrow['text']+'. High temperature at '+tomorrow['high']+' and low at '+tomorrow['low']

eg.plugins.Speech.TextToSpeech(u'Microsoft Anna - English (United States)', 0, weather_today, 0, 100)
eg.plugins.Speech.TextToSpeech(u'Microsoft Anna - English (United States)', 0, weather_tomorrow, 0, 100)
How do I use this? Lol forgive me for not knowing how to add scripts and such.
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Alarm Clock Sync from phone to PC?

Post by krambriw »

1) Create a Macro with a Python script

2) Copy & Paste from my samples

3) Test run the Macro

3) Add the event to the Macro that is suppose to start the execution
Image1.jpg
Image1.jpg (6.56 KiB) Viewed 3600 times
StgRawrface
Posts: 22
Joined: Sat Aug 23, 2014 2:40 pm

Re: Alarm Clock Sync from phone to PC?

Post by StgRawrface »

krambriw wrote:1) Create a Macro with a Python script

2) Copy & Paste from my samples

3) Test run the Macro

3) Add the event to the Macro that is suppose to start the execution
Image1.jpg
Just what I needed :) thank you so much! I didn't know really how to use variables like this! :)
Post Reply