Python Plugin : iCal Multi Purpose Python Plugin for Domoticz

Python and python framework
zak45
Posts: 574
Joined: Sunday 22 January 2017 12:37
Target OS: Windows
Domoticz version: V4.10171
Contact:

Python Plugin : iCal Multi Purpose Python Plugin for Domoticz

Post by zak45 » Monday 11 June 2018 20:29

iCal Multi Purpose Multi Language Python Plugin for Domoticz

Main Features

iCalendar integration: work with Google Calendar / Outlook.com / local : any ics file
Link Domoticz with your Calendar
Generate Holidays : customizable by adding day from your calendar
Holidays labels are in your language
Generate At work switch : to help to design custom scenario
Let know Domoticz if you're at home or at work
Can execute Domoticz command on device : switch / push / rgb / level
Use Google calendar (or Outlook etc ...) to schedule command


Extra:

Should it Rain in next Hour ??

Device specific to French people: data received from Meteo France / predicate rain for the next hour


And all of that: in your native language ( if language managed by googletrans python module )

https://www.domoticz.com/wiki/Plugins/iCal.html

Edit 02/11/2018:
there is a problem with googletrans module.
to fix it ( as temporary solution ):

pip install git+https://github.com/BoseCorp/py-googletrans.git --upgrade

Edit 05/11/2018:
fix for Outlook.com (strip \n)

Edit 29/11/2018
Manage rrule
Last edited by zak45 on Thursday 29 November 2018 18:55, edited 6 times in total.

User avatar
Dnpwwo
Posts: 767
Joined: Sunday 23 March 2014 10:00
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz

Post by Dnpwwo » Tuesday 12 June 2018 11:09

@zak45,

Very interesting plugin.

I believe you are the first person to use the Plugin Framework to implement a simple webserver :o
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw

zak45
Posts: 574
Joined: Sunday 22 January 2017 12:37
Target OS: Windows
Domoticz version: V4.10171
Contact:

Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz

Post by zak45 » Tuesday 12 June 2018 11:59

Dnpwwo wrote:
Tuesday 12 June 2018 11:09
@zak45,

Very interesting plugin.

I believe you are the first person to use the Plugin Framework to implement a simple webserver :o
And during my test, this work very well
thanks.

moo2089
Posts: 28
Joined: Sunday 25 March 2018 23:30
Target OS: Windows
Domoticz version: 4.9700
Location: Budapest/Hungary
Contact:

Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz

Post by moo2089 » Saturday 27 October 2018 23:18

hi there,

it could be very useful for me to inform domoticz about hungarian bank holidays, but plugin is not working for me.
during install (win10) everithying become red, but no error.
installer create ical plugin folder and put files in it
i can select iCal Calendar tool for Domoticz under hardware, got message devices created, but no device at all

in domoticz log no errors too;

:33.891 (K6) Light/Switch (Zöld gömb)
2018-10-27 23:12:33.954 (Sonoff S20 ) Light/Switch (Sonoff S20 #2 (kislámpa konyha))
2018-10-27 23:12:34.891 (Sonoff S20 ) Light/Switch (Sonoff S20 #4 (konyhaszekrény))
2018-10-27 23:12:35.594 EventSystem: Event triggered: fénykapcsoló_1
2018-10-27 23:12:35.594 EventSystem: Event triggered: fénykapcsoló_4
2018-10-27 23:12:45.672 EventSystem: Event triggered: fénykapcsoló_1
2018-10-27 23:12:45.672 EventSystem: Event triggered: fénykapcsoló_4
2018-10-27 23:12:49.563 (Xiaomi Gateway) General/Voltage (Xiaomi Voltage 2)
2018-10-27 23:12:49.516 Status: {"cmd":"heartbeat","model":"switch","sid":"158d0001f3d8bc","short_id":64356,"data":"{\"voltage\":3042}"}
2018-10-27 23:12:52.969 (calendar) Debug logging mask set to: PYTHON PLUGIN QUEUE IMAGE DEVICE CONNECTION MESSAGE ALL
2018-10-27 23:12:52.969 (calendar) 'Key':'iCal'
2018-10-27 23:12:52.969 (calendar) 'Mode6':'Debug'
2018-10-27 23:12:52.969 (calendar) 'Port':'8080'
2018-10-27 23:12:52.969 (calendar) 'DomoticzBuildTime':'2018-06-23 16:24:51'
2018-10-27 23:12:52.969 (calendar) 'DomoticzHash':'a3a45906'
2018-10-27 23:12:52.969 (calendar) 'Address':'127.0.0.1'
2018-10-27 23:12:52.969 (calendar) 'HardwareID':'47'
2018-10-27 23:12:52.969 (calendar) 'Version':'1.0.0'
2018-10-27 23:12:52.969 (calendar) 'Author':'zak45'
2018-10-27 23:12:52.969 (calendar) 'Mode2':'Hungary'
2018-10-27 23:12:52.969 (calendar) 'Mode1':'9003'
2018-10-27 23:12:52.969 (calendar) 'Mode5':'https://calendar.google.com/calendar/ic ... /basic.ics'
2018-10-27 23:12:52.969 (calendar) 'HomeFolder':'C:\Program Files (x86)\Domoticz\plugins\iCal\'
2018-10-27 23:12:52.969 (calendar) 'Mode3':'Yes'
2018-10-27 23:12:52.969 (calendar) 'DomoticzVersion':'4.9700'
2018-10-27 23:12:52.969 (calendar) 'Name':'calendar'
2018-10-27 23:12:52.969 (calendar) Device count: 0
2018-10-27 23:12:52.969 (calendar) Pushing 'PollIntervalDirective' on to queue
2018-10-27 23:12:52.984 (calendar) Request from domoticz to : type=command&param=getuservariables with encoding : utf-8
2018-10-27 23:12:52.984 (calendar) lang file : C:\Program Files (x86)\Domoticz\plugins\iCal\en_en.lng
2018-10-27 23:12:52.547 Status: (calendar) Started.
2018-10-27 23:12:52.969 Status: (calendar) Initialized version 1.0.0, author 'zak45'
2018-10-27 23:12:52.969 Status: (calendar) Entering work loop.
2018-10-27 23:12:53.987 (calendar) Pushing 'ProtocolDirective' on to queue
2018-10-27 23:12:53.987 (calendar) Pushing 'ListenDirective' on to queue
2018-10-27 23:12:53.987 (calendar) Listen on iCalWebserver - Port: 9003
2018-10-27 23:12:53.987 (calendar) Information level: 3
2018-10-27 23:12:53.987 (calendar) command to execute : "C:\Program Files (x86)\Domoticz\plugins\iCal\iCal.cmd" "C:\Program Files (x86)\Domoticz\plugins\iCal\iCal.py" "9003,Hungary,,,47,https://calendar.google.com/calendar/ic ... C:\Program Files (x86)\Domoticz\plugins\iCal\,Yes,999,0,0,0,0,0,3,127.0.0.1,8080,47.492199;19.056477" no
2018-10-27 23:12:54.050 (calendar) Initialisation finished, will sync iCal every : 60 minutes
2018-10-27 23:12:54.050 (calendar) Hardware ID: 47
2018-10-27 23:12:54.050 (calendar) Processing 'PollIntervalDirective' message
2018-10-27 23:12:54.050 (calendar) Heartbeat interval set to: 30.
2018-10-27 23:12:54.112 (calendar) Processing 'ProtocolDirective' message
2018-10-27 23:12:54.112 (calendar) Protocol set to: 'HTTP'.
2018-10-27 23:12:54.112 (calendar) Processing 'ListenDirective' message
2018-10-27 23:12:54.112 (calendar) Transport set to: 'TCP/IP', :9003.
2018-10-27 23:12:54.112 PluginSystem: Starting I/O service thread.
2018-10-27 23:12:54.112 (calendar) Listen directive received, action initiated successfully.
2018-10-27 23:12:55.753 EventSystem: Event triggered: fénykapcsoló_1
2018-10-27 23:12:55.753 EventSystem: Event triggered: fénykapcsoló_4
2018-10-27 23:12:58.800 (Broadlink IR1) Pushing 'onHeartbeatCallback' on to queue
2018-10-27 23:12:58.862 (Broadlink IR1) Processing 'onHeartbeatCallback' message
2018-10-27 23:12:58.862 (Broadlink IR1) Calling message handler 'onHeartbeat'.
2018-10-27 23:12:58.909 (Broadlink IR1) Pushing 'onHeartbeatCallback' on to queue
2018-10-27 23:12:58.925 (Broadlink IR1) Processing 'onHeartbeatCallback' message
2018-10-27 23:12:58.925 (Broadlink IR1) Calling message handler 'onHeartbeat'.
2018-10-27 23:13:00.462 EventSystem: Event triggered: estifény_1
2018-10-27 23:13:00.821 (Xiaomi Gateway) Color Switch (Xiaomi RGB Gateway)
2018-10-27 23:13:02.696 (calendar) Pushing 'onHeartbeatCallback' on to queue
2018-10-27 23:13:02.727 (calendar) Processing 'onHeartbeatCallback' message
2018-10-27 23:13:02.727 (calendar) Calling message handler 'onHeartbeat'.
2018-10-27 23:13:02.540 Status: dzVents: Info: Handling httpResponse-events for: "waqi_co
2018-10-27 23:13:02.540 Status: dzVents: Info: Waqi: ------ Start internal script: airquality: HTTPResponse: "waqi_co"
2018-10-27 23:13:02.618 Status: dzVents: Debug: Waqi: Processing device-adapter for CO Alert (bp6-kosztolanyi): Alert sensor adapter
2018-10-27 23:13:02.618 Status: dzVents: Debug: Waqi: Processing device-adapter for CO (bp6-kosztolanyi): Custom sensor device adapter
2018-10-27 23:13:02.633 Status: dzVents: Info: Waqi: ------ Finished airquality
2018-10-27 23:13:02.633 Status: EventSystem: Script event triggered: C:\Program Files (x86)\Domoticz\dzVents\runtime\dzVents.lua
2018-10-27 23:13:05.587 EventSystem: Event triggered: fénykapcsoló_1

running on win10 on gigabyte bace3160
Version: 4.9700
Build Hash: a3a45906
Compile Date: 2018-06-23 16:24:51
dzVents Version: 2.4.6
Python Version: 3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015, 19:28:18) [MSC v.1600 32 bit (Intel)]

do you have any idea?
thx in advance

zak45
Posts: 574
Joined: Sunday 22 January 2017 12:37
Target OS: Windows
Domoticz version: V4.10171
Contact:

Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz

Post by zak45 » Sunday 28 October 2018 19:26

Can you show the content of your 47Output.* files located into your plugin directory ?

moo2089
Posts: 28
Joined: Sunday 25 March 2018 23:30
Target OS: Windows
Domoticz version: 4.9700
Location: Budapest/Hungary
Contact:

Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz

Post by moo2089 » Sunday 28 October 2018 19:34

hi,

no, i cannot, as i dont have such output files you mentioned:)
only 4 files what setup.exe copied into that directory

i made other trial on my desktop (w81; same domoticz and python from scratch), but no success at all, actually worse, as i have errors in domoticz log;
something in plugin.py in 2 lines (2xx, 5xx maybe), as i deleted already, dont know exactly

zsolt
Last edited by moo2089 on Sunday 28 October 2018 19:43, edited 1 time in total.

zak45
Posts: 574
Joined: Sunday 22 January 2017 12:37
Target OS: Windows
Domoticz version: V4.10171
Contact:

Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz

Post by zak45 » Sunday 28 October 2018 19:40

OK, let me know all files you have it

moo2089
Posts: 28
Joined: Sunday 25 March 2018 23:30
Target OS: Windows
Domoticz version: 4.9700
Location: Budapest/Hungary
Contact:

Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz

Post by moo2089 » Sunday 28 October 2018 19:46

sure, here they are:

en_en.lng
iCal.cmd
iCal.py
plugin.py

zak45
Posts: 574
Joined: Sunday 22 January 2017 12:37
Target OS: Windows
Domoticz version: V4.10171
Contact:

Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz

Post by zak45 » Sunday 28 October 2018 19:50

that's fine. Please put debug mode On, reload the plugin, and post log file.

moo2089
Posts: 28
Joined: Sunday 25 March 2018 23:30
Target OS: Windows
Domoticz version: 4.9700
Location: Budapest/Hungary
Contact:

Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz

Post by moo2089 » Sunday 28 October 2018 19:55

its in debug mode, is reloading plugin mean reboot domoticz and save domoticz log, what i did in my first post?

zak45
Posts: 574
Joined: Sunday 22 January 2017 12:37
Target OS: Windows
Domoticz version: V4.10171
Contact:

Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz

Post by zak45 » Sunday 28 October 2018 20:05

you do not need to reboot Domoticz.
if you do not have similar information :
Spoiler: show
018-10-28 19:01:16.382 (Google) Transport set to: 'TCP/IP', :9003.
2018-10-28 19:01:16.382 (Google) Listen directive received, action initiated successfully.
2018-10-28 19:01:16.757 (Google) Pushing 'ProtocolDirective' on to queue
2018-10-28 19:01:16.757 (Google) Pushing 'onConnectCallback' on to queue
2018-10-28 19:01:16.757 (Google) Pushing 'ReadEvent' on to queue
2018-10-28 19:01:16.819 (Google) Processing 'ProtocolDirective' message
2018-10-28 19:01:16.819 (Google) Protocol set to: 'HTTP'.
2018-10-28 19:01:16.819 (Google) Processing 'onConnectCallback' message
2018-10-28 19:01:16.819 (Google) Calling message handler 'onConnect'.
2018-10-28 19:01:16.819 (Google) Connecté avec succès à 127.0.0.1: 57581
2018-10-28 19:01:16.819 (Google) Processing 'ReadEvent' message
2018-10-28 19:01:16.819 (Google) Received 240 bytes of data
2018-10-28 19:01:16.819 (Google) 50 4f 53 54 20 2f 20 48 54 54 50 2f 31 2e 31 0d 0a 48 6f 73 POST./.HTTP/1.1..Hos
2018-10-28 19:01:16.819 (Google) 74 3a 20 31 32 37 2e 30 2e 30 2e 31 3a 39 30 30 33 0d 0a 41 t:.127.0.0.1:9003..A
2018-10-28 19:01:16.819 (Google) 63 63 65 70 74 2d 45 6e 63 6f 64 69 6e 67 3a 20 67 7a 69 70 ccept-Encoding:.gzip
2018-10-28 19:01:16.819 (Google) 2c 20 64 65 66 6c 61 74 65 0d 0a 43 6f 6e 6e 65 63 74 69 6f ,.deflate..Connectio
2018-10-28 19:01:16.819 (Google) 6e 3a 20 6b 65 65 70 2d 61 6c 69 76 65 0d 0a 41 63 63 65 70 n:.keep-alive..Accep
2018-10-28 19:01:16.819 (Google) 74 3a 20 2a 2f 2a 0d 0a 55 73 65 72 2d 41 67 65 6e 74 3a 20 t:.*/*..User-Agent:.
2018-10-28 19:01:16.819 (Google) 70 79 74 68 6f 6e 2d 72 65 71 75 65 73 74 73 2f 32 2e 31 33 python-requests/2.13
2018-10-28 19:01:16.819 (Google) 2e 30 0d 0a 43 6f 6e 74 65 6e 74 2d 74 79 70 65 3a 20 74 65 .0..Content-type:.te
2018-10-28 19:01:16.819 (Google) 78 74 2f 70 6c 61 69 6e 3b 20 63 68 61 72 73 65 74 3d 75 74 xt/plain;.charset=ut
2018-10-28 19:01:16.819 (Google) 66 2d 38 0d 0a 43 6f 6e 74 65 6e 74 2d 4c 65 6e 67 74 68 3a f-8..Content-Length:
2018-10-28 19:01:16.819 (Google) 20 33 33 0d 0a 0d 0a 7b 22 63 6f 64 65 76 69 6c 6c 61 67 65 .33....{"codevillage
2018-10-28 19:01:16.819 (Google) 22 3a 7b 22 63 6f 64 65 22 3a 22 34 35 33 31 35 30 22 7d 7d ":{"code":"453150"}}
2018-10-28 19:01:16.819 (Google) Pushing 'onMessageCallback' on to queue
2018-10-28 19:01:16.819 (Google) Processing 'onMessageCallback' message
2018-10-28 19:01:16.819 (Google) Calling message handler 'onMessage'.
verify you firewall etc ... something probably block communication.
also be sure that specified port is not already used etc...

moo2089
Posts: 28
Joined: Sunday 25 March 2018 23:30
Target OS: Windows
Domoticz version: 4.9700
Location: Budapest/Hungary
Contact:

Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz

Post by moo2089 » Sunday 28 October 2018 20:48

fw switched off, port modified from 9003->9333, server put to DMZ:), but same
if i select link, i can download ics file, what normally plugin should do, strange
Spoiler: show
(calendar) Debug logging mask set to: PYTHON PLUGIN QUEUE IMAGE DEVICE CONNECTION MESSAGE ALL
2018-10-28 19:18:20.071 (calendar) 'HomeFolder':'C:\Program Files (x86)\Domoticz\plugins\iCal\'
2018-10-28 19:18:20.071 (calendar) 'Mode3':'Yes'
2018-10-28 19:18:20.071 (calendar) 'Key':'iCal'
2018-10-28 19:18:20.071 (calendar) 'Mode6':'Debug'
2018-10-28 19:18:20.071 (calendar) 'Mode2':'Hungary'
2018-10-28 19:18:20.071 (calendar) 'Version':'1.0.0'
2018-10-28 19:18:20.071 (calendar) 'Mode5':'https://calendar.google.com/calendar/ic ... /basic.ics'
2018-10-28 19:18:20.071 (calendar) 'Port':'8080'
2018-10-28 19:18:20.071 (calendar) 'HardwareID':'47'
2018-10-28 19:18:20.071 (calendar) 'DomoticzBuildTime':'2018-06-23 16:24:51'
2018-10-28 19:18:20.071 (calendar) 'DomoticzVersion':'4.9700'
2018-10-28 19:18:20.071 (calendar) 'DomoticzHash':'a3a45906'
2018-10-28 19:18:20.071 (calendar) 'Address':'127.0.0.1'
2018-10-28 19:18:20.071 (calendar) 'Author':'zak45'
2018-10-28 19:18:20.086 (calendar) 'Mode1':'9333'
2018-10-28 19:18:20.086 (calendar) 'Name':'calendar'
2018-10-28 19:18:20.086 (calendar) Device count: 0
2018-10-28 19:18:20.086 (calendar) Pushing 'PollIntervalDirective' on to queue
2018-10-28 19:18:20.117 (calendar) Request from domoticz to : param=getuservariables&type=command with encoding : utf-8
2018-10-28 19:18:20.117 (calendar) lang file : C:\Program Files (x86)\Domoticz\plugins\iCal\en_en.lng
2018-10-28 19:18:20.071 Status: Python EventSystem: Initalizing event module.
2018-10-28 19:18:20.071 Status: EventSystem: Started
2018-10-28 19:18:20.071 Status: EventSystem: Queue thread started...
2018-10-28 19:18:20.086 Status: Incoming connection from: 127.0.0.1
2018-10-28 19:18:21.149 (calendar) Pushing 'ProtocolDirective' on to queue
2018-10-28 19:18:21.149 (calendar) Pushing 'ListenDirective' on to queue
2018-10-28 19:18:21.149 (calendar) Listen on iCalWebserver - Port: 9333
2018-10-28 19:18:21.149 (calendar) Information level: 3
2018-10-28 19:18:21.149 (calendar) command to execute : "C:\Program Files (x86)\Domoticz\plugins\iCal\iCal.cmd" "C:\Program Files (x86)\Domoticz\plugins\iCal\iCal.py" "9333,Hungary,,,47,https://calendar.google.com/calendar/ic ... C:\Program Files (x86)\Domoticz\plugins\iCal\,Yes,999,0,0,0,0,0,3,127.0.0.1,8080,47.492199;19.056477" no
2018-10-28 19:18:21.211 (calendar) Initialisation finished, will sync iCal every : 60 minutes
2018-10-28 19:18:21.211 (calendar) Hardware ID: 47
2018-10-28 19:18:21.211 (Broadlink IR1) Processing 'PollIntervalDirective' message
2018-10-28 19:18:21.211 (Broadlink IR1) Heartbeat interval set to: 30.
2018-10-28 19:18:21.211 (Broadlink IR1) Processing 'PollIntervalDirective' message
2018-10-28 19:18:21.211 (Broadlink IR1) Heartbeat interval set to: 30.
2018-10-28 19:18:21.211 (calendar) Processing 'PollIntervalDirective' message
2018-10-28 19:18:21.211 (calendar) Heartbeat interval set to: 30.
2018-10-28 19:18:21.274 (calendar) Processing 'ProtocolDirective' message
2018-10-28 19:18:21.274 (calendar) Protocol set to: 'HTTP'.
2018-10-28 19:18:21.274 (calendar) Processing 'ListenDirective' message
2018-10-28 19:18:21.274 (calendar) Transport set to: 'TCP/IP', :9333.
2018-10-28 19:18:21.274 PluginSystem: Starting I/O service thread.
2018-10-28 19:18:21.274 (calendar) Listen directive received, action initiated successfully.
2018-10-28 19:18:23.945 (Baross u. (WU)) Temp + Humidity + Baro (Baross u. THB)
2018-10-28 19:18:23.992 (Baross u. (WU)) Wind (Baross u. szél)
2018-10-28 19:18:24.039 (Baross u. (WU)) UV (Baross u. UV)
2018-10-28 19:18:24.102 (Baross u. (WU)) Rain (Baross u. eső)
2018-10-28 19:18:24.149 (Baross u. (WU)) General/Visibility (Baross u. látótáv)
2018-10-28 19:18:24.195 (Baross u. (WU)) General/Solar Radiation (Baross u. napsugárzás)
2018-10-28 19:18:28.633 (Broadlink IR1) Pushing 'onHeartbeatCallback' on to queue
2018-10-28 19:18:28.649 (Broadlink IR1) Processing 'onHeartbeatCallback' message
2018-10-28 19:18:28.649 (Broadlink IR1) Calling message handler 'onHeartbeat'.
2018-10-28 19:18:28.883 (Broadlink IR1) Pushing 'onHeartbeatCallback' on to queue
2018-10-28 19:18:28.898 (Broadlink IR1) Processing 'onHeartbeatCallback' message
2018-10-28 19:18:28.898 (Broadlink IR1) Calling message handler 'onHeartbeat'.
2018-10-28 19:18:29.195 (calendar) Pushing 'onHeartbeatCallback' on to queue
2018-10-28 19:18:29.211 (calendar) Processing 'onHeartbeatCallback' message
2018-10-28 19:18:29.211 (calendar) Calling message handler 'onHeartbeat'.
2018-10-28 19:18:30.492 (Darksky) Temp + Humidity + Baro (Ferenciek THB)
2018-10-28 19:18:30.539 (Darksky) Wind (Ferenciek szél)
2018-10-28 19:18:30.617 (Darksky) UV (Ferenciek UV)
2018-10-28 19:18:30.680 (Darksky) Rain (Ferenciek eső)
2018-10-28 19:18:30.742 (Darksky) General/Visibility (Ferenciek látótáv)
2018-10-28 19:18:30.789 (Darksky) General/Custom Sensor (Ferenciek Ozone Sensor)
2018-10-28 19:18:31.914 EventSystem: Event triggered: fénykapcsoló_1
2018-10-28 19:18:31.914 EventSystem: Event triggered: fénykapcsoló_4
2018-10-28 19:18:34.351 EventSystem: Event triggered: fénykapcsoló_1
2018-10-28 19:18:34.351 EventSystem: Event triggered: fénykapcsoló_4
2018-10-28 19:18:44.292 EventSystem: Event triggered: fénykapcsoló_1
2018-10-28 19:18:44.292 EventSystem: Event triggered: fénykapcsoló_4

zak45
Posts: 574
Joined: Sunday 22 January 2017 12:37
Target OS: Windows
Domoticz version: V4.10171
Contact:

Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz

Post by zak45 » Monday 29 October 2018 22:12

are you able to reach the mini web server created ?
let's try :
http://localhost:9333/

you should have a response in this form :

iCal response OK!

At home, I'm running domoticz as a service.
is the same for you ?

moo2089
Posts: 28
Joined: Sunday 25 March 2018 23:30
Target OS: Windows
Domoticz version: 4.9700
Location: Budapest/Hungary
Contact:

Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz

Post by moo2089 » Tuesday 30 October 2018 13:53

no, i cannot reach webserver on port defined under ical plugin setup:(, waiting for response forever:)
no, it is installed as application, but full access is given to plugin directory for every user for testing
i do a new install on another pc as a service to see if something changes or not

tomdh76
Posts: 26
Joined: Saturday 09 September 2017 19:27
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz

Post by tomdh76 » Thursday 01 November 2018 12:54

Nice work!

But unfortunately in my situation it does not work. I see in logs the same as you have reported and no errors. But no devices are being made. After I enable in the hardware section it states "devices being made". But they are nowhere to be found. I already temproarily disabled domoticz login and password and in the settings pushed the button "allow new devices for 5 minutes"

zak45
Posts: 574
Joined: Sunday 22 January 2017 12:37
Target OS: Windows
Domoticz version: V4.10171
Contact:

Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz

Post by zak45 » Thursday 01 November 2018 17:09

tomdh76 wrote:
Thursday 01 November 2018 12:54
Nice work!

But unfortunately in my situation it does not work. I see in logs the same as you have reported and no errors. But no devices are being made. After I enable in the hardware section it states "devices being made". But they are nowhere to be found. I already temproarily disabled domoticz login and password and in the settings pushed the button "allow new devices for 5 minutes"
Can you post your log ?

moo2089
Posts: 28
Joined: Sunday 25 March 2018 23:30
Target OS: Windows
Domoticz version: 4.9700
Location: Budapest/Hungary
Contact:

Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz

Post by moo2089 » Thursday 01 November 2018 17:32

hi;

i did install as a service, but same issues
changed user rights now at least i have output error files as:

47ouput.err:
Spoiler: show
Traceback (most recent call last):
File "C:\Program Files (x86)\Domoticz\plugins\iCal\iCal.py", line 1053, in <module>
initVar()
File "C:\Program Files (x86)\Domoticz\plugins\iCal\iCal.py", line 292, in initVar
creVar(varname,value)
File "C:\Program Files (x86)\Domoticz\plugins\iCal\iCal.py", line 350, in creVar
value = postcr['address']['village']
KeyError: 'village'
47output.txt:
Spoiler: show
-----------------Main---------------------------
__Request Domoticz to : param=getuservariables&type=command used encoding is : utf-8__
['switch', 'push', 'level', 'rgb']
__the uservariable exist: 47|iCal|sync --> 60__
__the uservariable exist: 47|iCal|cmd --> switch,push,level,rgb__
__the uservariable exist: 47|iCal|tz --> tz__
__the uservariable exist: 47|iCal|postalcode --> 1053__
Request from openstreetmap to :lon=19.056477&lat=47.492199&format=json with encoding : utf-8
also strange if i go to localhost:9003, no answer in browser, but in log i see this:
Spoiler: show
2018-11-01 16:30:10.397 (ical) 0d 0a 55 70 67 72 61 64 65 2d 49 6e 73 65 63 75 72 65 2d 52 ..Upgrade-Insecure-R
2018-11-01 16:30:10.397 (ical) 65 71 75 65 73 74 73 3a 20 31 0d 0a 55 73 65 72 2d 41 67 65 equests:.1..User-Age
2018-11-01 16:30:10.398 (ical) 6e 74 3a 20 4d 6f 7a 69 6c 6c 61 2f 35 2e 30 20 28 57 69 6e nt:.Mozilla/5.0.(Win
2018-11-01 16:30:10.398 (ical) 64 6f 77 73 20 4e 54 20 31 30 2e 30 3b 20 57 69 6e 36 34 3b dows.NT.10.0;.Win64;
2018-11-01 16:30:10.399 (ical) 20 78 36 34 29 20 41 70 70 6c 65 57 65 62 4b 69 74 2f 35 33 .x64).AppleWebKit/53
2018-11-01 16:30:10.400 (ical) 37 2e 33 36 20 28 4b 48 54 4d 4c 2c 20 6c 69 6b 65 20 47 65 7.36.(KHTML,.like.Ge
2018-11-01 16:30:10.400 (ical) 63 6b 6f 29 20 43 68 72 6f 6d 65 2f 37 30 2e 30 2e 33 35 33 cko).Chrome/70.0.353
2018-11-01 16:30:10.401 (ical) 38 2e 37 37 20 53 61 66 61 72 69 2f 35 33 37 2e 33 36 0d 0a 8.77.Safari/537.36..
2018-11-01 16:30:10.401 (ical) 41 63 63 65 70 74 3a 20 74 65 78 74 2f 68 74 6d 6c 2c 61 70 Accept:.text/html,ap
2018-11-01 16:30:10.402 (ical) 70 6c 69 63 61 74 69 6f 6e 2f 78 68 74 6d 6c 2b 78 6d 6c 2c plication/xhtml+xml,
2018-11-01 16:30:10.402 (ical) 61 70 70 6c 69 63 61 74 69 6f 6e 2f 78 6d 6c 3b 71 3d 30 2e application/xml;q=0.
2018-11-01 16:30:10.403 (ical) 39 2c 69 6d 61 67 65 2f 77 65 62 70 2c 69 6d 61 67 65 2f 61 9,image/webp,image/a
2018-11-01 16:30:10.403 (ical) 70 6e 67 2c 2a 2f 2a 3b 71 3d 30 2e 38 0d 0a 41 63 63 65 70 png,*/*;q=0.8..Accep
2018-11-01 16:30:10.404 (ical) 74 2d 45 6e 63 6f 64 69 6e 67 3a 20 67 7a 69 70 2c 20 64 65 t-Encoding:.gzip,.de
2018-11-01 16:30:10.404 (ical) 66 6c 61 74 65 2c 20 62 72 0d 0a 41 63 63 65 70 74 2d 4c 61 flate,.br..Accept-La
2018-11-01 16:30:10.405 (ical) 6e 67 75 61 67 65 3a 20 68 75 2d 48 55 2c 68 75 3b 71 3d 30 nguage:.hu-HU,hu;q=0
2018-11-01 16:30:10.418 (ical) 2e 39 2c 65 6e 2d 55 53 3b 71 3d 30 2e 38 2c 65 6e 3b 71 3d .9,en-US;q=0.8,en;q=
2018-11-01 16:30:10.418 (ical) 30 2e 37 0d 0a 0d 0a .. .. .. .. .. .. .. .. .. .. .. .. .. 0.7....
2018-11-01 16:30:10.418 (ical) Pushing 'onMessageCallback' on to queue
2018-11-01 16:30:10.419 (ical) Processing 'ProtocolDirective' message
2018-11-01 16:30:10.419 (ical) Protocol set to: 'HTTP'.
2018-11-01 16:30:10.419 (ical) Processing 'onConnectCallback' message
2018-11-01 16:30:10.419 (ical) Calling message handler 'onConnect'.
2018-11-01 16:30:10.420 (ical) Connected successfully to 127.0.0.1:57049
2018-11-01 16:30:10.420 (ical) Processing 'onMessageCallback' message
2018-11-01 16:30:10.420 (ical) Calling message handler 'onMessage'.
2018-11-01 16:30:10.421 (ical) onMessage called for connection: 127.0.0.1:57048
2018-11-01 16:30:10.421 (ical) GET request received.
2018-11-01 16:30:10.421 (ical) Pushing 'WriteDirective' on to queue
2018-11-01 16:30:10.421 (ical) Processing 'WriteDirective' message
2018-11-01 16:30:10.422 (ical) Sending 249 bytes of data
2018-11-01 16:30:10.422 (ical) 48 54 54 50 2f 31 2e 31 20 32 30 30 20 4f 4b 0d 0a 44 61 74 HTTP/1.1.200.OK..Dat
2018-11-01 16:30:10.422 (ical) 65 3a 20 54 68 75 2c 20 30 31 20 4e 6f 76 20 32 30 31 38 20 e:.Thu,.01.Nov.2018.
2018-11-01 16:30:10.423 (ical) 31 35 3a 33 30 3a 31 30 20 47 4d 54 0d 0a 53 65 72 76 65 72 15:30:10.GMT..Server
2018-11-01 16:30:10.423 (ical) 3a 20 44 6f 6d 6f 74 69 63 7a 2f 31 2e 30 0d 0a 43 6f 6e 6e :.Domoticz/1.0..Conn
2018-11-01 16:30:10.424 (ical) 65 63 74 69 6f 6e 3a 20 6b 65 65 70 2d 61 6c 69 76 65 0d 0a ection:.keep-alive..
2018-11-01 16:30:10.424 (ical) 41 63 63 65 70 74 3a 20 43 6f 6e 74 65 6e 74 2d 54 79 70 65 Accept:.Content-Type
2018-11-01 16:30:10.425 (ical) 3a 20 74 65 78 74 2f 68 74 6d 6c 3b 20 63 68 61 72 73 65 74 :.text/html;.charset
2018-11-01 16:30:10.425 (ical) 3d 55 54 46 2d 38 0d 0a 43 6f 6e 74 65 6e 74 2d 4c 65 6e 67 =UTF-8..Content-Leng
2018-11-01 16:30:10.425 (ical) 74 68 3a 20 37 39 0d 0a 0d 0a 3c 21 64 6f 63 74 79 70 65 20 th:.79....<!doctype.
2018-11-01 16:30:10.426 (ical) 68 74 6d 6c 3e 3c 68 74 6d 6c 3e 3c 68 65 61 64 3e 3c 2f 68 html><html><head></h
2018-11-01 16:30:10.442 (ical) 65 61 64 3e 3c 62 6f 64 79 3e 3c 68 31 3e 53 75 63 63 65 73 ead><body><h1>Succes
2018-11-01 16:30:10.443 (ical) 73 66 75 6c 20 47 45 54 21 21 21 3c 2f 68 31 3e 3c 62 6f 64 sful.GET!!!</h1><bod
2018-11-01 16:30:10.443 (ical) 79 3e 3c 2f 68 74 6d 6c 3e .. .. .. .. .. .. .. .. .. .. .. y></html>
2018-11-01 16:30:10.621 (ical) Pushing 'ProtocolDirective' on to queue
2018-11-01 16:30:10.623 (ical) Pushing 'onConnectCallback' on to queue
2018-11-01 16:30:10.647 (ical) Processing 'ProtocolDirective' message
2018-11-01 16:30:10.647 (ical) Protocol set to: 'HTTP'.
2018-11-01 16:30:10.648 (ical) Processing 'onConnectCallback' message
2018-11-01 16:30:10.648 (ical) Calling message handler 'onConnect'.
2018-11-01 16:30:10.649 (ical) Connected successfully to 127.0.0.1:57050

tomdh76
Posts: 26
Joined: Saturday 09 September 2017 19:27
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz

Post by tomdh76 » Thursday 01 November 2018 21:03

zak45 wrote:
Thursday 01 November 2018 17:09
tomdh76 wrote:
Thursday 01 November 2018 12:54
Nice work!

But unfortunately in my situation it does not work. I see in logs the same as you have reported and no errors. But no devices are being made. After I enable in the hardware section it states "devices being made". But they are nowhere to be found. I already temproarily disabled domoticz login and password and in the settings pushed the button "allow new devices for 5 minutes"
Can you post your log ?
Here you are:

2018-11-01 19:42:11.841 Status: (Google calendar) Initialized version 1.0.0, author 'zak45'
2018-11-01 19:42:11.849 Status: (Google calendar) Entering work loop.
2018-11-01 20:01:21.674 (Google calendar) Pushing 'onHeartbeatCallback' on to queue
2018-11-01 20:01:21.685 (Google calendar) Processing 'onHeartbeatCallback' message
2018-11-01 20:01:21.685 (Google calendar) Calling message handler 'onHeartbeat'.
2018-11-01 20:01:40.613 (Google calendar) Pushing 'DisconnectDirective' on to queue
2018-11-01 20:01:40.636 (Google calendar) Processing 'DisconnectDirective' message
2018-11-01 20:01:40.636 (Google calendar) Disconnect directive received for ':9003'.
2018-11-01 20:01:40.636 (Google calendar) Handling disconnect, socket (:9003) is not connected
2018-11-01 20:01:40.636 (Google calendar) Pushing 'DisconnectedEvent' on to queue
2018-11-01 20:01:40.636 (Google calendar) Pushing 'onStopCallback' on to queue
2018-11-01 20:01:40.636 (Google calendar) Processing 'DisconnectedEvent' message
2018-11-01 20:01:40.636 (Google calendar) Processing 'onStopCallback' message
2018-11-01 20:01:40.636 (Google calendar) Calling message handler 'onStop'.
2018-11-01 20:01:40.636 (Google calendar) onStop called
2018-11-01 20:01:40.645 (Google calendar) Deallocating connection object 'iCalWebServer' (:9003).
2018-11-01 20:01:40.801 (Google calendar) Debug logging mask set to: PYTHON PLUGIN QUEUE IMAGE DEVICE CONNECTION MESSAGE ALL
2018-11-01 20:01:40.802 (Google calendar) 'HardwareID':'20'
2018-11-01 20:01:40.802 (Google calendar) 'HomeFolder':'/home/tomdh76/domoticz/plugins/iCal/'
2018-11-01 20:01:40.802 (Google calendar) 'Version':'1.0.0'
2018-11-01 20:01:40.802 (Google calendar) 'Author':'zak45'
2018-11-01 20:01:40.802 (Google calendar) 'Name':'Google calendar'
2018-11-01 20:01:40.802 (Google calendar) 'Address':'192.168.2.197'
2018-11-01 20:01:40.802 (Google calendar) 'Port':'8080'
2018-11-01 20:01:40.802 (Google calendar) 'Key':'iCal'
2018-11-01 20:01:40.802 (Google calendar) 'Mode1':'9003'
2018-11-01 20:01:40.802 (Google calendar) 'Mode2':'Netherlands'
2018-11-01 20:01:40.802 (Google calendar) 'Mode3':'No'
2018-11-01 20:01:40.802 (Google calendar) 'Mode5':'https://calendar.google.com/calendar/ic ... xxxxxx.ics'
2018-11-01 20:01:40.802 (Google calendar) 'Mode6':'Debug'
2018-11-01 20:01:40.802 (Google calendar) 'DomoticzVersion':'4.9701'
2018-11-01 20:01:40.802 (Google calendar) 'DomoticzHash':'b47a877f'
2018-11-01 20:01:40.802 (Google calendar) 'DomoticzBuildTime':'2018-06-23 16:27:56'
2018-11-01 20:01:40.802 (Google calendar) Device count: 0
2018-11-01 20:01:40.802 (Google calendar) Pushing 'PollIntervalDirective' on to queue
2018-11-01 20:01:40.804 (Google calendar) Request from domoticz to : type=command&param=getuservariables with encoding : utf-8
2018-11-01 20:01:40.804 (Google calendar) lang file : /home/tomdh76/domoticz/plugins/iCal/en_en.lng
2018-11-01 20:01:40.804 (Google calendar) Pushing 'ProtocolDirective' on to queue
2018-11-01 20:01:40.804 (Google calendar) Pushing 'ListenDirective' on to queue
2018-11-01 20:01:40.804 (Google calendar) Listen on iCalWebserver - Port: 9003
2018-11-01 20:01:40.804 (Google calendar) Information level: 3
2018-11-01 20:01:40.804 (Google calendar) command to execute : "/home/tomdh76/domoticz/plugins/iCal/iCal.sh" "/home/tomdh76/domoticz/plugins/iCal/iCal.py" "9003,Netherlands,,,20,https://calendar.google.com/calendar/ic ... 2;4.447958" no
2018-11-01 20:01:40.812 (Google calendar) Initialisation finished, will sync iCal every : 60 minutes
2018-11-01 20:01:40.812 (Google calendar) Hardware ID: 20
2018-11-01 20:01:40.812 (Google calendar) Processing 'PollIntervalDirective' message
2018-11-01 20:01:40.812 (Google calendar) Heartbeat interval set to: 30.
2018-11-01 20:01:40.812 (Google calendar) Processing 'ProtocolDirective' message
2018-11-01 20:01:40.812 (Google calendar) Protocol set to: 'HTTP'.
2018-11-01 20:01:40.812 (Google calendar) Processing 'ListenDirective' message
2018-11-01 20:01:40.812 (Google calendar) Transport set to: 'TCP/IP', :9003.
2018-11-01 20:01:40.812 (Google calendar) Listen directive received, action initiated successfully.

zak45
Posts: 574
Joined: Sunday 22 January 2017 12:37
Target OS: Windows
Domoticz version: V4.10171
Contact:

Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz

Post by zak45 » Friday 02 November 2018 0:14

tomdh76 wrote:
Thursday 01 November 2018 21:03
2018-11-01 20:01:40.812 (Google calendar) Transport set to: 'TCP/IP', :9003.
2018-11-01 20:01:40.812 (Google calendar) Listen directive received, action initiated successfully.
can you try http://192.168.2.197:9003 and let me know the result ?

zak45
Posts: 574
Joined: Sunday 22 January 2017 12:37
Target OS: Windows
Domoticz version: V4.10171
Contact:

Re: Python Plugin : iCal Multi Purpose Python Plugin for Domoticz

Post by zak45 » Friday 02 November 2018 0:22

moo2089 wrote:
Thursday 01 November 2018 17:32

also strange if i go to localhost:9003, no answer in browser, but in log i see this:
Spoiler: show
2018-11-01 16:30:10.397 (ical) 0d 0a 55 70 67 72 61 64 65 2d 49 6e 73 65 63 75 72 65 2d 52 ..Upgrade-Insecure-R
2018-11-01 16:30:10.397 (ical) 65 71 75 65 73 74 73 3a 20 31 0d 0a 55 73 65 72 2d 41 67 65 equests:.1..User-Age
2018-11-01 16:30:10.398 (ical) 6e 74 3a 20 4d 6f 7a 69 6c 6c 61 2f 35 2e 30 20 28 57 69 6e nt:.Mozilla/5.0.(Win
2018-11-01 16:30:10.398 (ical) 64 6f 77 73 20 4e 54 20 31 30 2e 30 3b 20 57 69 6e 36 34 3b dows.NT.10.0;.Win64;
2018-11-01 16:30:10.399 (ical) 20 78 36 34 29 20 41 70 70 6c 65 57 65 62 4b 69 74 2f 35 33 .x64).AppleWebKit/53
2018-11-01 16:30:10.400 (ical) 37 2e 33 36 20 28 4b 48 54 4d 4c 2c 20 6c 69 6b 65 20 47 65 7.36.(KHTML,.like.Ge
2018-11-01 16:30:10.400 (ical) 63 6b 6f 29 20 43 68 72 6f 6d 65 2f 37 30 2e 30 2e 33 35 33 cko).Chrome/70.0.353
2018-11-01 16:30:10.401 (ical) 38 2e 37 37 20 53 61 66 61 72 69 2f 35 33 37 2e 33 36 0d 0a 8.77.Safari/537.36..
2018-11-01 16:30:10.401 (ical) 41 63 63 65 70 74 3a 20 74 65 78 74 2f 68 74 6d 6c 2c 61 70 Accept:.text/html,ap
2018-11-01 16:30:10.402 (ical) 70 6c 69 63 61 74 69 6f 6e 2f 78 68 74 6d 6c 2b 78 6d 6c 2c plication/xhtml+xml,
2018-11-01 16:30:10.402 (ical) 61 70 70 6c 69 63 61 74 69 6f 6e 2f 78 6d 6c 3b 71 3d 30 2e application/xml;q=0.
2018-11-01 16:30:10.403 (ical) 39 2c 69 6d 61 67 65 2f 77 65 62 70 2c 69 6d 61 67 65 2f 61 9,image/webp,image/a
2018-11-01 16:30:10.403 (ical) 70 6e 67 2c 2a 2f 2a 3b 71 3d 30 2e 38 0d 0a 41 63 63 65 70 png,*/*;q=0.8..Accep
2018-11-01 16:30:10.404 (ical) 74 2d 45 6e 63 6f 64 69 6e 67 3a 20 67 7a 69 70 2c 20 64 65 t-Encoding:.gzip,.de
2018-11-01 16:30:10.404 (ical) 66 6c 61 74 65 2c 20 62 72 0d 0a 41 63 63 65 70 74 2d 4c 61 flate,.br..Accept-La
2018-11-01 16:30:10.405 (ical) 6e 67 75 61 67 65 3a 20 68 75 2d 48 55 2c 68 75 3b 71 3d 30 nguage:.hu-HU,hu;q=0
2018-11-01 16:30:10.418 (ical) 2e 39 2c 65 6e 2d 55 53 3b 71 3d 30 2e 38 2c 65 6e 3b 71 3d .9,en-US;q=0.8,en;q=
2018-11-01 16:30:10.418 (ical) 30 2e 37 0d 0a 0d 0a .. .. .. .. .. .. .. .. .. .. .. .. .. 0.7....
2018-11-01 16:30:10.418 (ical) Pushing 'onMessageCallback' on to queue
2018-11-01 16:30:10.419 (ical) Processing 'ProtocolDirective' message
2018-11-01 16:30:10.419 (ical) Protocol set to: 'HTTP'.
2018-11-01 16:30:10.419 (ical) Processing 'onConnectCallback' message
2018-11-01 16:30:10.419 (ical) Calling message handler 'onConnect'.
2018-11-01 16:30:10.420 (ical) Connected successfully to 127.0.0.1:57049
2018-11-01 16:30:10.420 (ical) Processing 'onMessageCallback' message
2018-11-01 16:30:10.420 (ical) Calling message handler 'onMessage'.
2018-11-01 16:30:10.421 (ical) onMessage called for connection: 127.0.0.1:57048
2018-11-01 16:30:10.421 (ical) GET request received.
2018-11-01 16:30:10.421 (ical) Pushing 'WriteDirective' on to queue
2018-11-01 16:30:10.421 (ical) Processing 'WriteDirective' message
2018-11-01 16:30:10.422 (ical) Sending 249 bytes of data
2018-11-01 16:30:10.422 (ical) 48 54 54 50 2f 31 2e 31 20 32 30 30 20 4f 4b 0d 0a 44 61 74 HTTP/1.1.200.OK..Dat
2018-11-01 16:30:10.422 (ical) 65 3a 20 54 68 75 2c 20 30 31 20 4e 6f 76 20 32 30 31 38 20 e:.Thu,.01.Nov.2018.
2018-11-01 16:30:10.423 (ical) 31 35 3a 33 30 3a 31 30 20 47 4d 54 0d 0a 53 65 72 76 65 72 15:30:10.GMT..Server
2018-11-01 16:30:10.423 (ical) 3a 20 44 6f 6d 6f 74 69 63 7a 2f 31 2e 30 0d 0a 43 6f 6e 6e :.Domoticz/1.0..Conn
2018-11-01 16:30:10.424 (ical) 65 63 74 69 6f 6e 3a 20 6b 65 65 70 2d 61 6c 69 76 65 0d 0a ection:.keep-alive..
2018-11-01 16:30:10.424 (ical) 41 63 63 65 70 74 3a 20 43 6f 6e 74 65 6e 74 2d 54 79 70 65 Accept:.Content-Type
2018-11-01 16:30:10.425 (ical) 3a 20 74 65 78 74 2f 68 74 6d 6c 3b 20 63 68 61 72 73 65 74 :.text/html;.charset
2018-11-01 16:30:10.425 (ical) 3d 55 54 46 2d 38 0d 0a 43 6f 6e 74 65 6e 74 2d 4c 65 6e 67 =UTF-8..Content-Leng
2018-11-01 16:30:10.425 (ical) 74 68 3a 20 37 39 0d 0a 0d 0a 3c 21 64 6f 63 74 79 70 65 20 th:.79....<!doctype.
2018-11-01 16:30:10.426 (ical) 68 74 6d 6c 3e 3c 68 74 6d 6c 3e 3c 68 65 61 64 3e 3c 2f 68 html><html><head></h
2018-11-01 16:30:10.442 (ical) 65 61 64 3e 3c 62 6f 64 79 3e 3c 68 31 3e 53 75 63 63 65 73 ead><body><h1>Succes
2018-11-01 16:30:10.443 (ical) 73 66 75 6c 20 47 45 54 21 21 21 3c 2f 68 31 3e 3c 62 6f 64 sful.GET!!!</h1><bod
2018-11-01 16:30:10.443 (ical) 79 3e 3c 2f 68 74 6d 6c 3e .. .. .. .. .. .. .. .. .. .. .. y></html>
2018-11-01 16:30:10.621 (ical) Pushing 'ProtocolDirective' on to queue
2018-11-01 16:30:10.623 (ical) Pushing 'onConnectCallback' on to queue
2018-11-01 16:30:10.647 (ical) Processing 'ProtocolDirective' message
2018-11-01 16:30:10.647 (ical) Protocol set to: 'HTTP'.
2018-11-01 16:30:10.648 (ical) Processing 'onConnectCallback' message
2018-11-01 16:30:10.648 (ical) Calling message handler 'onConnect'.
2018-11-01 16:30:10.649 (ical) Connected successfully to 127.0.0.1:57050
So your mini webserver is running now, which is nice. just try 127.0.0.1 instead local host.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests