Skip to content

Instantly share code, notes, and snippets.

View Naesstrom's full-sized avatar

Erik Näsström Naesstrom

View GitHub Profile
2015-11-23 22:26:29 ERROR Thread-43 :: Failed doing webui callback: Traceback (most recent call last):
2015-11-23 22:26:29 DEBUG Thread-43 :: Trying to determine free space on destination drive
2015-11-23 22:26:29 INFO Thread-43 :: This download is marked a priority download so I'm going to replace an existing file if I find one
2015-11-23 22:26:29 DEBUG Thread-43 :: File /mnt/Series/How to Get Away with Murder/S02/How to Get Away with Murder - S02E09 - What Did We Do.mkv is the same size as /mnt/Unsorted Series/How.to.Get.Away.with.Murder.S02E09.REPACK.720p.HDTV.X264-DIMENSION[cttv]/How.to.Get.Away.with.Murder.S02E09.REPACK.720p.HDTV.X264-DIMENSION[cttv].mkv
2015-11-23 22:26:29 DEBUG Thread-43 :: Snatch history had a version in it, using that: v-1
2015-11-23 22:26:29 DEBUG Thread-43 :: Is ep a priority download: True
2015-11-23 22:26:29 DEBUG Thread-43 :: SR snatched this episode and it is a proper of equal or higher quality so I'm marking it as priority
2015-11-23 22:26:29 DEBUG Thr
#include <ThingSpeak.h>
#include<stdlib.h>
#include <SoftwareSerial.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#define ONE_WIRE_BUS 2
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
#define SSID "PROELEV"
#define PASS "sokrates"
2017-03-26 15:55:46,361 - octoprint.server - INFO - --- Log roll over detected ---------------------------------------------------
2017-03-26 15:55:46,362 - octoprint.server - INFO - OctoPrint 1.3.2 (master branch)
2017-03-26 15:55:46,365 - octoprint.plugin.core - INFO - 15 plugin(s) registered with the system:
| Announcement Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.2-py2.7.egg/octoprint/plugins/announcements
| Autoselect Plugin (0.1.0) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_autoselect
| Core Wizard (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.2-py2.7.egg/octoprint/plugins/corewizard
| Cost Plugin (0.1.2) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_cost
| CuraEngine (<= 15.04) (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.2-py2.7.egg/octoprint/plugins/cura
| Discovery (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.2-py2.7.egg/octoprint/plugins/discovery
|
@Naesstrom
Naesstrom / sync_playlists_to_all_users.py
Last active May 28, 2021 18:42 — forked from JonnyWong16/sync_playlists_to_users.py
Sync Plex playlists to shared users.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Description: Sync Plex playlists to shared users.
# Author: /u/SwiftPanda16
# Requires: plexapi, requests, xmltodict
# Changes by me: Syncs all current playlists to all current users. Everytime you run it it deletes the old playlists on the users account and replaces it with your.
import requests
import xmltodict
[
{
"id": "ef597fd5.34077",
"type": "tab",
"label": "SMHI",
"disabled": false,
"info": ""
},
{
"id": "85d5e855.7f06d8",
{
"validTime": "2018-02-17T12:00:00Z",
"parameters": [{
"name": "spp",
"levelType": "hl",
"level": 0,
"unit": "percent",
"values": [-9]
}, {
"name": "pcat",
[
{
"id": "960f34a6.80f3a8",
"type": "json",
"z": "a82671ae.34679",
"name": "",
"property": "payload",
"action": "",
"pretty": false,
"x": 770,
#Detta gör att den hämtar automatiseringarna från en annan fil som heter automation.yaml
automation: !include automations.yaml
#Inställningarna för kodi
media_player:
- platform: kodi
host: 192.168.1.117
turn_on_action:
- service: wake_on_lan.send_magic_packet
data:
- alias: "Media player paused/stopped"
trigger:
- platform: state
entity_id: media_player.kodi
from: 'playing'
to: 'idle'
action:
service: scene.turn_on
entity_id: scene.livingroom_normal
- alias: 'record cumulative rain to midnight'
trigger:
- platform: time
at: "00:00:01"
action:
service: mqtt.publish
data_template:
topic: 'hass/cum_rain_prior'
retain: true
payload: '{"day_1":"{{states.sensor.rain_cum.state}}"}'