This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[test1] | |
log 1 pass = Sep 6 16:19:35 hostname1 APP: user1;API: User logged in using API | |
rule = 990010 | |
alert = 3 | |
decoder = apiuser | |
[test2] | |
log 1 pass = Sep 6 16:19:35 hostname1 APP: apiuser1;API: User logged in using API | |
rule = 990020 | |
alert = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Device discovery component for ziggo wifi routers. | |
Tested on Cisco EPC3928AD EuroDocsis 3.0 2-PORT Voice Gateway | |
Modem software version: e3928A-E10-5-c3220r5592-150612c-ZIG | |
Module parses output from login screen http://192.168.178.1/login_zig.asp | |
place this file in custom_components/device_tracker/ziggo_router.py | |
add in your configuration the following. | |
device_tracker: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Holt-Winters algorithms to forecasting | |
# Coded in Python 2 by: Andre Queiroz | |
# Description: This module contains three exponential smoothing algorithms. They are Holt's linear trend method and Holt-Winters seasonal methods (additive and multiplicative). | |
# References: | |
# Hyndman, R. J.; Athanasopoulos, G. (2013) Forecasting: principles and practice. http://otexts.com/fpp/. Accessed on 07/03/2013. | |
# Byrd, R. H.; Lu, P.; Nocedal, J. A Limited Memory Algorithm for Bound Constrained Optimization, (1995), SIAM Journal on Scientific and Statistical Computing, 16, 5, pp. 1190-1208. | |
from __future__ import division | |
from sys import exit | |
from math import sqrt |