Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - R0yk3

#1
Monit wil do it i guess, but it also relies on the ping. have not found out how it maybe digs deeper into unbound an devices. But this also i 'external'
I would like a signal form unbound itself when a specific mac signs in.
#2
General Discussion / Presence detection but different
October 15, 2022, 05:18:35 PM
Hello,
I asked the same question in Dutch so i hope this does not count as crossposting. If i get the answer in Dutch i will post it here so everybody can make use of it.

The question is can opnsense give a signal if a sudden device logs in. I want a signal when my phone or my wifes phone connects to the wifi.
the signal is preferebly a webhook
when i enter this:
http://192.168.1.5/json.htm?type=command&param=switchlight&idx=1015&switchcmd=On
And when i leave this:
http://192.168.1.5/json.htm?type=command&param=switchlight&idx=1015&switchcmd=Off

Maybe you recognize the above code it is from Domoticz and it switches a viirtual switch. All local no passwords or anything needed just curl the code.
if i type:
curl 'http://192.168.1.5/json.htm?type=command&param=switchlight&idx=1015&switchcmd=On';

it actualy works. So now the trick how can i trigger the system to do this for me?

At this moment the phones get a fixed ip, but in stead of pinging i would like it the other way around.
I'm not a programmer, i'm more like a 50 year old scriptkiddie who can copy and paste code.

Thanks in advance
#3
dag,
Korte vraag:
Is het mogelijk om via OPNsense een webhook te versturen als een bepaald apparaat zich aanmeld.

Uitleg achter de vraag:
Ik heb een Domoticz systeem draaien en ik wil graag een aantal programma's alleen laten draaien als wij thuis zijn. Hiervoor kan ik natuurlijk constant pingen naar een vast uitgegeven IP adres maar dat wil ik niet.
Het mooie zou zijn dat wanneer mijn telefoon of die van mijn vrouw aangemeld in Opnsense er een signaaltje naar Domoticz gaat met de melding dat deze telefoon zich weer in het netwerk bevindt. Het signaaltje is dit:
https://192.168.1.5/json.htm?type=command&param=switchlight&idx=1015&switchcmd=On
Bij het verlaten van het netwerk natuurlijk dit:
https://192.168.1.5/json.htm?type=command&param=switchlight&idx=1015&switchcmd=Off

En dat voor twee ip / mac adressen

Alvast bedankt