This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Light sensor notification
#1
Hey guys,

I'm new here and just found out about this app when searching for a solution for a problem I've got.

I'm trying to get an old android phone I have laying around to get light sensor data and to send out a notification if the light gets to a certain threshold, in order to use it with IFTTT.

Ex: If the light gets below 40 lux -> notification. IFTTT detects app notification -> turns on yeelight.

Is it possible to do this with phyphox?

Thanks a bunch.
Pete
Reply
#2
I have not worked with IFTTT myself, but I am quite sure that it can offer URLs through which processes can be triggered (often called web-hooks some other applications). If so, you can use our new network interface to create a phyphox configuration that does just that. Unfortunately, this is not yet part of our editor and it only has the basic documentation without any examples: https://phyphox.org/wiki/index.php/Network_Connections

If you don't mind writing some XML and understand the documentation, you can try to create an experiment configuration that simply sends the current light level to IFTTT and set up the threshold over there. Here is an example for a much more complicated experiment that periodically sends the frequency of a pendulum to one of our servers (it is currently not active, so if you try this, it will not be able to submit):
https://phyphox.org/livespring/livespring.phyphox
You might be able to reduce this down to your needs. After all, you will not need any of the data analysis, but just a single buffer for the light sensor and the network connection.
Reply
#3
Thank you Sebastian.
I've been reading all the documents you linked but that's way over my league!
I'm not really programing savvy and even though I understand some basic notions,I'm sure I couldn't get the thing to work on my lifetime.

I really appreciate you pointing me in the right direction but maybe sometime phyphox features will be upgraded and I'm able to do this more easily.
Reply


Forum Jump: