├── .gitattributes ├── .gitignore ├── ItemsDoc.xlsx ├── JenkinsFile ├── LICENSE ├── README.md ├── external ├── SunriseSunsetCalculator │ ├── LICENSE │ ├── README.markdown │ ├── pom.xml │ ├── src │ │ ├── main │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── luckycatlabs │ │ │ │ │ └── sunrisesunset │ │ │ │ │ ├── SunriseSunsetCalculator.java │ │ │ │ │ ├── Zenith.java │ │ │ │ │ ├── calculator │ │ │ │ │ └── SolarEventCalculator.java │ │ │ │ │ └── dto │ │ │ │ │ └── Location.java │ │ │ └── ruby │ │ │ │ └── solardatacollector.rb │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── luckycatlabs │ │ │ └── sunrisesunset │ │ │ ├── SunriseSunsetCalculatorTest.java │ │ │ ├── SunriseSunsetDataTest.java │ │ │ ├── calculator │ │ │ └── SolarEventCalculatorTest.java │ │ │ └── util │ │ │ ├── BaseTestCase.java │ │ │ └── CSVTestDriver.java │ └── testdata │ │ ├── 33_8600S-151_2111E#Australia-Sydney.txt │ │ ├── 39_9937N-75_7850W#America-New_York.txt │ │ ├── 40_0194N-105_2928W#America-Denver.txt │ │ └── 64_8378N-147_7164W#America-Anchorage.txt ├── jdring │ ├── README.html │ ├── license-lgpl.txt │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── com │ │ └── jtheory │ │ └── jdring │ │ ├── AlarmEntry.java │ │ ├── AlarmListener.java │ │ ├── AlarmManager.java │ │ ├── AlarmWaiter.java │ │ └── PastDateException.java └── pom.xml ├── home-items ├── core-items │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── assembly │ │ │ └── distribution.xml │ │ ├── java │ │ │ └── nu │ │ │ │ └── nethome │ │ │ │ └── home │ │ │ │ └── items │ │ │ │ ├── audio │ │ │ │ ├── AudioProtocolParser.java │ │ │ │ └── AudioProtocolTransmitter.java │ │ │ │ ├── gui │ │ │ │ ├── LogTableModel.java │ │ │ │ └── TrayBarIcon.java │ │ │ │ ├── misc │ │ │ │ ├── CommandSequencer.java │ │ │ │ ├── DebugManager.java │ │ │ │ ├── LmSensorsFan.java │ │ │ │ ├── LmSensorsThermometer.java │ │ │ │ ├── MBMThermometer.java │ │ │ │ ├── Scene.java │ │ │ │ ├── ValueLogger.java │ │ │ │ └── ValueTrigger.java │ │ │ │ ├── net │ │ │ │ ├── ArpScanner.java │ │ │ │ ├── GateKeeper.java │ │ │ │ ├── H2DatabaseTCPServer.java │ │ │ │ ├── LampMessageInteractor.java │ │ │ │ ├── MacDevice.java │ │ │ │ ├── MacDeviceGroup.java │ │ │ │ ├── Message.java │ │ │ │ ├── MessageInteractor.java │ │ │ │ ├── MqttClient.java │ │ │ │ ├── MqttCommandPort.java │ │ │ │ ├── MqttCommander.java │ │ │ │ ├── MqttLamp.java │ │ │ │ ├── MqttValueLogger.java │ │ │ │ ├── TCPCommandPort.java │ │ │ │ ├── TCPListener.java │ │ │ │ ├── TCPProxy.java │ │ │ │ ├── TeamCityBuildMonitor.java │ │ │ │ ├── UDPCommandPort.java │ │ │ │ ├── UDPListener.java │ │ │ │ ├── XmppClient.java │ │ │ │ └── wemo │ │ │ │ │ ├── BasicService.wsdl │ │ │ │ │ ├── BridgeDevice.java │ │ │ │ │ ├── BridgeDeviceStatus.java │ │ │ │ │ ├── HtmlEscape.java │ │ │ │ │ ├── InsightState.java │ │ │ │ │ ├── WemoBridge.java │ │ │ │ │ ├── WemoBridgeSoapClient.java │ │ │ │ │ ├── WemoException.java │ │ │ │ │ ├── WemoInsightSwitch.java │ │ │ │ │ ├── WemoInsightSwitchClient.java │ │ │ │ │ ├── WemoLamp.java │ │ │ │ │ ├── WemoSwitch.java │ │ │ │ │ ├── deviceNode.xml │ │ │ │ │ ├── notes.txt │ │ │ │ │ ├── rootNode.xml │ │ │ │ │ └── soap │ │ │ │ │ └── LightSoapClient.java │ │ │ │ ├── satellite │ │ │ │ ├── SatelliteCommander.java │ │ │ │ └── SatelliteLogger.java │ │ │ │ └── timer │ │ │ │ ├── DayLiteTimer.java │ │ │ │ ├── FlexableAlarm.java │ │ │ │ ├── IntervalTimer.java │ │ │ │ ├── LampRepeater.java │ │ │ │ ├── SunTimer │ │ │ │ ├── SunTimer.java │ │ │ │ └── TimeExpressionParser.java │ │ │ │ └── WeekTimer.java │ │ └── resources │ │ │ └── nu │ │ │ └── nethome │ │ │ └── home │ │ │ └── items │ │ │ └── gui │ │ │ ├── critical.png │ │ │ ├── home.png │ │ │ ├── home16.png │ │ │ ├── info.png │ │ │ └── warn.png │ │ └── test │ │ └── java │ │ └── nu │ │ └── nethome │ │ └── home │ │ ├── items │ │ ├── MockHomeItem.java │ │ ├── MockHomeItemProxy.java │ │ ├── MockServiceConnection.java │ │ ├── MockTCPClient.java │ │ ├── net │ │ │ ├── ArpScannerTest.java │ │ │ ├── GateKeeperTest.java │ │ │ ├── LampMessageInteractorTest.java │ │ │ ├── MacDeviceGroupTest.java │ │ │ ├── MacDeviceTest.java │ │ │ ├── MessageInteractorTest.java │ │ │ ├── MessageTest.java │ │ │ ├── MqttCommandPortTest.java │ │ │ ├── MqttCommanderTest.java │ │ │ ├── MqttLampTest.java │ │ │ ├── TCPCommandPortTest.java │ │ │ ├── TeamCityBuildMonitorTest.java │ │ │ ├── XmppClientTest.java │ │ │ └── wemo │ │ │ │ ├── BridgeDeviceStatusTest.java │ │ │ │ ├── BridgeDeviceTest.java │ │ │ │ ├── InsightStateTest.java │ │ │ │ ├── WemoBridgeSoapClientTest.java │ │ │ │ ├── WemoBridgeTest.java │ │ │ │ ├── WemoInsightSwitchTest.java │ │ │ │ ├── WemoLampTest.java │ │ │ │ └── soap │ │ │ │ └── WemoInsightSwitchClientTest.java │ │ └── timer │ │ │ └── SunTimer │ │ │ ├── SunTimerTest.java │ │ │ └── TimeExpressionParserTest.java │ │ └── system │ │ └── runner.java ├── pom.xml ├── rf-items │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── assembly │ │ │ └── distribution.xml │ │ └── java │ │ │ └── nu │ │ │ └── nethome │ │ │ └── home │ │ │ └── items │ │ │ ├── CustomLamp.java │ │ │ ├── GenericThermometer.java │ │ │ ├── Lamp.java │ │ │ ├── LampGroup.java │ │ │ ├── RemapButton.java │ │ │ ├── blinds │ │ │ └── BlindState.java │ │ │ ├── cul │ │ │ └── CULTransceiver.java │ │ │ ├── deltronic │ │ │ ├── DeltronicLamp.java │ │ │ └── DeltronicRemapButton.java │ │ │ ├── fineoffset │ │ │ ├── CounterHistory.java │ │ │ ├── FineOffsetHygrometer.java │ │ │ ├── FineOffsetRainGauge.java │ │ │ ├── FineOffsetThermometer.java │ │ │ ├── FooGadgetLegacy.java │ │ │ ├── FooGadgetPulse.java │ │ │ └── PeriodCounter.java │ │ │ ├── fs20 │ │ │ ├── FHZ1000PC.java │ │ │ ├── FHZ1000PcPort.java │ │ │ ├── FS20Event.java │ │ │ ├── FS20EventListener.java │ │ │ ├── FS20Lamp.java │ │ │ └── FS20RemapButton.java │ │ │ ├── hue │ │ │ ├── HueBridge.java │ │ │ ├── HueConfig.java │ │ │ ├── HueLamp.java │ │ │ ├── HueProcessingException.java │ │ │ ├── JSONData.java │ │ │ ├── JsonRestClient.java │ │ │ ├── Light.java │ │ │ ├── LightId.java │ │ │ ├── LightState.java │ │ │ ├── PhilipsHueBridge.java │ │ │ └── Sensor.java │ │ │ ├── ikea │ │ │ ├── IkeaColorTemperatureLamp.java │ │ │ ├── IkeaGateway.java │ │ │ ├── IkeaGatewayClient.java │ │ │ ├── IkeaLamp.java │ │ │ └── JSONData.java │ │ │ ├── jeelink │ │ │ ├── JeeLink.java │ │ │ ├── JeeLinkPort.java │ │ │ ├── JeeLinkProtocolPort.java │ │ │ └── PortException.java │ │ │ ├── mqtt │ │ │ ├── MqttHygrometer.java │ │ │ ├── MqttRemapButton.java │ │ │ └── MqttThermometer.java │ │ │ ├── nexa │ │ │ ├── NexaLCAdvancedRemapButton.java │ │ │ ├── NexaLCDimmer.java │ │ │ ├── NexaLCLamp.java │ │ │ ├── NexaLCRemapButton.java │ │ │ ├── NexaLCRemapButton4.java │ │ │ ├── NexaLamp.java │ │ │ ├── NexaRemapButton.java │ │ │ └── NexaSmokeDetector.java │ │ │ ├── oregon │ │ │ ├── OregonHygrometer.java │ │ │ ├── OregonThermometer.java │ │ │ └── OregonWind.java │ │ │ ├── plant │ │ │ └── PlantManager.java │ │ │ ├── prologue │ │ │ └── PrologueThermometer.java │ │ │ ├── pronto │ │ │ ├── GenericProntoCommander.java │ │ │ ├── ProntoDevice.java │ │ │ └── ProntoLamp.java │ │ │ ├── rfbitbanger │ │ │ └── RFBitBangerTransmitter.java │ │ │ ├── risingsun │ │ │ └── RisingSunLamp.java │ │ │ ├── rollertrol │ │ │ ├── RollerTrolBlind.java │ │ │ └── RollerTrolBlindGSeries.java │ │ │ ├── tellstick │ │ │ ├── FineOffsetEventReceiver.java │ │ │ ├── NexaEventReceiver.java │ │ │ ├── NexaLEventReceiver.java │ │ │ ├── OregonEventReceiver.java │ │ │ ├── RawMessage.java │ │ │ ├── RollerTrolEventReceiver.java │ │ │ ├── SendQueue.java │ │ │ ├── Tellstick.java │ │ │ ├── TellstickEvent.java │ │ │ ├── TellstickEventReceiver.java │ │ │ ├── TellstickEventReceiverAdaptor.java │ │ │ ├── TellstickPort.java │ │ │ └── UPMEventReceiver.java │ │ │ ├── upm │ │ │ ├── UPMHygrometer.java │ │ │ ├── UPMMessage.java │ │ │ ├── UPMRainfall.java │ │ │ ├── UPMSoilMoisture.java │ │ │ ├── UPMThermometer.java │ │ │ ├── UPMWindDirection.java │ │ │ └── UPMWindSpeed.java │ │ │ ├── waveman │ │ │ └── WavemanLamp.java │ │ │ ├── zhejiang │ │ │ └── ZhejiangLamp.java │ │ │ └── zwave │ │ │ ├── ZWaveBlind.java │ │ │ ├── ZWaveCentralSceneRemapButton.java │ │ │ ├── ZWaveCommandPort.java │ │ │ ├── ZWaveController.java │ │ │ ├── ZWaveDimmer.java │ │ │ ├── ZWaveLamp.java │ │ │ ├── ZWaveMeter.java │ │ │ ├── ZWaveMultiLevelSensor.java │ │ │ ├── ZWaveNode.java │ │ │ ├── ZWaveNodeExplorer.java │ │ │ └── ZWaveRemapButton.java │ │ └── test │ │ └── java │ │ └── nu │ │ └── nethome │ │ └── home │ │ └── items │ │ ├── GenericThermometerTest.java │ │ ├── LampGroupTest.java │ │ ├── cul │ │ └── CULTransceiverTest.java │ │ ├── deltronic │ │ └── DeltronicLampScenarioTest.java │ │ ├── fineoffset │ │ ├── CounterHistoryTest.java │ │ ├── FineOffsetRainGaugeTest.java │ │ ├── FooGadgetLegacyTest.java │ │ ├── FooGadgetPulseTest.java │ │ └── PeriodCounterTest.java │ │ ├── hue │ │ ├── LightStateTest.java │ │ ├── LightTest.java │ │ └── PhilipsHueBridgeTest.java │ │ ├── ikea │ │ └── IkeaColorTemperatureLampTest.java │ │ ├── jeelink │ │ ├── JeeLinkPortTest.java │ │ └── JeeLinkProtocolPortTest.java │ │ ├── nexa │ │ ├── NexaLCLampScenarioTest.java │ │ ├── NexaLCRemapButtonTest.java │ │ ├── NexaLampScenarioTest.java │ │ ├── NexaRemapButtonTest.java │ │ └── NexaSmokeDetectorTest.java │ │ ├── oregon │ │ └── OregonWindTest.java │ │ ├── pronto │ │ ├── ProntoDeviceTest.java │ │ └── ProntoLampScenarioTest.java │ │ ├── risingsun │ │ └── RisingSunLampTest.java │ │ ├── rollertrol │ │ └── BlindStateTest.java │ │ ├── tellstick │ │ ├── SendQueueTest.java │ │ ├── TellstickEventTest.java │ │ ├── TellstickPortTest.java │ │ └── TellstickTest.java │ │ ├── upm │ │ └── UPMThermometerTest.java │ │ ├── util │ │ ├── ItemAttributeTester.java │ │ ├── TstEvent.java │ │ ├── TstHomeItemProxy.java │ │ └── TstHomeService.java │ │ ├── waveman │ │ └── WavemanLampScenarioTest.java │ │ ├── zhejiang │ │ └── ZhejiangLampScenarioTest.java │ │ └── zwave │ │ ├── ZWaveControllerTest.java │ │ ├── ZWaveLampTest.java │ │ └── ZWaveRemapButtonTest.java └── web-items │ ├── pom.xml │ └── src │ ├── main │ ├── assembly │ │ └── distribution.xml │ ├── java │ │ └── nu │ │ │ └── nethome │ │ │ └── home │ │ │ └── items │ │ │ ├── infra │ │ │ ├── Box.java │ │ │ ├── Location.java │ │ │ ├── Plan.java │ │ │ └── Room.java │ │ │ └── web │ │ │ ├── GraphServlet.java │ │ │ ├── HomeWebServer.java │ │ │ ├── JettyWEB.java │ │ │ ├── ResourceServlet.java │ │ │ ├── proxy │ │ │ ├── HomeCloudConnection.java │ │ │ ├── HttpRequest.java │ │ │ ├── HttpResponse.java │ │ │ ├── JSONResponse.java │ │ │ ├── JsonRestClient.java │ │ │ ├── LoginReq.java │ │ │ └── LoginResp.java │ │ │ ├── rest │ │ │ ├── AttributeDto.java │ │ │ ├── HomeItemsResource.java │ │ │ ├── HomeServices.java │ │ │ ├── ItemDirectoryEntryDto.java │ │ │ ├── ItemDto.java │ │ │ ├── LogReader.java │ │ │ └── exceptions │ │ │ │ ├── ExecutionFailureMapper.java │ │ │ │ ├── IllegalValueExceptionMapper.java │ │ │ │ ├── RestException.java │ │ │ │ └── RestExceptionMapper.java │ │ │ ├── servergui │ │ │ ├── ActionButton.java │ │ │ ├── AttributeTypePrinterInterface.java │ │ │ ├── CategorizedItemList.java │ │ │ ├── CodersPage.java │ │ │ ├── CreationEventCache.java │ │ │ ├── DefaultPageIdentity.java │ │ │ ├── EditControl.java │ │ │ ├── EditControlAdapter.java │ │ │ ├── EditItemArguments.java │ │ │ ├── EditItemPage.java │ │ │ ├── EditPermission.java │ │ │ ├── EditSettingsPage.java │ │ │ ├── GraphPage.java │ │ │ ├── HTMLEncode.java │ │ │ ├── HomeGUI.java │ │ │ ├── HomeGUIArguments.java │ │ │ ├── HomeItemError.java │ │ │ ├── HomePageInterface.java │ │ │ ├── HomeUrlBuilder.java │ │ │ ├── ItemEvent.java │ │ │ ├── LogPage.java │ │ │ ├── MediaPage.java │ │ │ ├── PlanPage.java │ │ │ ├── PortletPage.java │ │ │ ├── RoomsPage.java │ │ │ ├── SelectClassPage.java │ │ │ ├── ServerFloor.java │ │ │ ├── SettingsBasePage.java │ │ │ ├── attributes │ │ │ │ ├── BooleanAttributePrinter.java │ │ │ │ ├── CommandAttributePrinter.java │ │ │ │ ├── DurationAttributePrinter.java │ │ │ │ ├── ItemAttributePrinter.java │ │ │ │ ├── ItemsAttributePrinter.java │ │ │ │ ├── MediaFileAttributePrinter.java │ │ │ │ ├── OptionsAttributePrinter.java │ │ │ │ ├── PasswordAttributePrinter.java │ │ │ │ ├── StringAttributePrinter.java │ │ │ │ ├── StringListAttributePrinter.java │ │ │ │ ├── StringsAttributePrinter.java │ │ │ │ ├── TextAttributePrinter.java │ │ │ │ └── ValueAttributePrinter.java │ │ │ └── package-info.java │ │ │ └── temp │ │ │ └── TempWEB.java │ └── resources │ │ └── nu │ │ └── nethome │ │ └── home │ │ └── items │ │ └── web │ │ ├── home │ │ ├── Thumbs.db │ │ ├── bg_grey_dotted_h-line_3x1.png │ │ ├── bg_module_action_600x800.gif │ │ ├── bg_module_info_featured_1x113.gif │ │ ├── bg_module_top_3085af_900x27.png │ │ ├── bg_module_top_999999_900x27.png │ │ ├── bg_module_top_v1_e8e8e8_900x27.png │ │ ├── calendar.png │ │ ├── clock16.png │ │ ├── close.png │ │ ├── cloud16.png │ │ ├── coder32.png │ │ ├── coggwheels.png │ │ ├── coggwheels16.png │ │ ├── coggwheels32.png │ │ ├── control.png │ │ ├── control16.png │ │ ├── control32.png │ │ ├── createitem.js │ │ ├── critical.png │ │ ├── door_new16.png │ │ ├── edit.png │ │ ├── edititempage.js │ │ ├── gauge.png │ │ ├── gauge16.png │ │ ├── gauge32.png │ │ ├── graph.js │ │ ├── grey_back.png │ │ ├── grey_back_bottom.png │ │ ├── grey_back_divider.png │ │ ├── grey_back_top.png │ │ ├── gui.png │ │ ├── gui16.png │ │ ├── gui32.png │ │ ├── home.ico │ │ ├── hw.png │ │ ├── hw16.png │ │ ├── hw32.png │ │ ├── ie_onload.js │ │ ├── image32.png │ │ ├── info.png │ │ ├── info16.png │ │ ├── infra.png │ │ ├── infra16.png │ │ ├── infra32.png │ │ ├── item.png │ │ ├── item16.png │ │ ├── item_divider.png │ │ ├── item_new16.png │ │ ├── js │ │ │ ├── excanvas.min.js │ │ │ ├── jquery-1.4.3.min.js │ │ │ ├── jquery-ui-1.8.24.custom.min.js │ │ │ ├── jquery.jqplot.min.css │ │ │ ├── jquery.jqplot.min.js │ │ │ └── plugins │ │ │ │ ├── jqplot.canvasTextRenderer.min.js │ │ │ │ ├── jqplot.categoryAxisRenderer.min.js │ │ │ │ ├── jqplot.cursor.min.js │ │ │ │ └── jqplot.dateAxisRenderer.min.js │ │ ├── lamp16_off.png │ │ ├── lamp16_on.png │ │ ├── lamp32.png │ │ ├── lamp32_off.png │ │ ├── lamp32_on.png │ │ ├── lamp_off.png │ │ ├── lamp_on.png │ │ ├── left_banner.jpg │ │ ├── link32.png │ │ ├── log32.png │ │ ├── menu_divider.png │ │ ├── menu_left.png │ │ ├── menu_leftedit.png │ │ ├── menu_right.png │ │ ├── menu_rightedit.png │ │ ├── menuback.png │ │ ├── menuback_active.png │ │ ├── menubackedit.png │ │ ├── nethome.css │ │ ├── newplan.js │ │ ├── next.png │ │ ├── page_bg.png │ │ ├── pitem_divider.png │ │ ├── plan.css │ │ ├── plan.js │ │ ├── plugin16.png │ │ ├── point-hover.png │ │ ├── point.png │ │ ├── port.png │ │ ├── port16.png │ │ ├── port32.png │ │ ├── preferences16.png │ │ ├── preferences32.png │ │ ├── prev.png │ │ ├── remote32.png │ │ ├── right_banner.jpg │ │ ├── rooms.js │ │ ├── star16.png │ │ ├── svg │ │ │ ├── analyzer.svg │ │ │ ├── appliance.svg │ │ │ ├── box.svg │ │ │ ├── clock.svg │ │ │ ├── cloud.svg │ │ │ ├── coggwheels.svg │ │ │ ├── doc.svg │ │ │ ├── gauge.svg │ │ │ ├── gui.svg │ │ │ ├── hw.svg │ │ │ ├── image.svg │ │ │ ├── item.svg │ │ │ ├── lamp_off.svg │ │ │ ├── lamp_on.svg │ │ │ ├── port.svg │ │ │ ├── remote.svg │ │ │ └── thermometer.svg │ │ ├── thermometer.png │ │ ├── thermometer16.png │ │ ├── thermometer32.png │ │ ├── timer.png │ │ ├── timer32.png │ │ ├── tooltip-bg.png │ │ ├── warn.png │ │ └── wave16.png │ │ └── temp │ │ ├── 0h30.png │ │ ├── 1h30.png │ │ ├── 2h30.png │ │ ├── 3h30.png │ │ ├── 4h30.png │ │ ├── 5h30.png │ │ ├── 6h30.png │ │ ├── 7h30.png │ │ ├── 8h30.png │ │ ├── 9h30.png │ │ ├── Ch30.png │ │ ├── Dh30.png │ │ ├── Fh30.png │ │ ├── Ph30.png │ │ ├── Sh30.png │ │ ├── WSh30.png │ │ ├── buttonPower.png │ │ ├── buttonSilver.png │ │ ├── deh30.png │ │ ├── dnh30.png │ │ ├── dsh30.png │ │ ├── dwh30.png │ │ ├── longtop.png │ │ ├── mh30.png │ │ ├── rdh30.png │ │ ├── rhh30.png │ │ ├── rth30.png │ │ ├── rwh30.png │ │ ├── silverButtonOff.png │ │ ├── silverButtonOn.png │ │ ├── style.css │ │ └── top.png │ └── test │ └── java │ └── nu │ └── nethome │ └── home │ ├── items │ ├── infra │ │ ├── LocationTest.java │ │ └── PlanTest.java │ └── web │ │ ├── ResourceServletTest.java │ │ ├── proxy │ │ └── HomeCloudConnectionTest.java │ │ └── servergui │ │ ├── CreationEventCacheTest.java │ │ └── MediaPageTest.java │ └── system │ └── WebRunner.java ├── pom.xml ├── server-install ├── pom.xml └── src │ ├── main │ ├── assembly │ │ └── distribution.xml │ ├── java │ │ └── nu │ │ │ └── nethome │ │ │ └── home │ │ │ └── start │ │ │ ├── HomeItemClassInfo.java │ │ │ ├── StaticHomeItemFactory.java │ │ │ └── StaticHomeManagerStarter.java │ ├── lib │ │ ├── rxtx │ │ │ ├── INSTALL │ │ │ ├── Linux │ │ │ │ ├── arm6hf │ │ │ │ │ └── librxtxSerial.so │ │ │ │ ├── i686-unknown-linux-gnu │ │ │ │ │ ├── librxtxParallel.so │ │ │ │ │ └── librxtxSerial.so │ │ │ │ ├── ia64-unkown-linux-gnu │ │ │ │ │ └── librxtxSerial.so │ │ │ │ └── x86_64-unknown-linux-gnu │ │ │ │ │ └── librxtxSerial.so │ │ │ ├── Mac_OS_X │ │ │ │ ├── README │ │ │ │ └── librxtxSerial.jnilib │ │ │ ├── RXTX_License.txt │ │ │ └── Windows │ │ │ │ ├── i368-mingw32 │ │ │ │ ├── README │ │ │ │ ├── rxtxParallel.dll │ │ │ │ └── rxtxSerial.dll │ │ │ │ └── win-x64 │ │ │ │ ├── README │ │ │ │ ├── rxtxParallel.dll │ │ │ │ └── rxtxSerial.dll │ │ └── swt │ │ │ └── README │ ├── resources │ │ ├── SignedTellstickDrivers.zip │ │ ├── demo.xml │ │ ├── demo_rpi.xml │ │ └── media │ │ │ ├── apartment1.jpg │ │ │ ├── button_icon.png │ │ │ ├── button_icon_down.png │ │ │ ├── home.jpg │ │ │ └── home_back.jpg │ └── scripts │ │ ├── install │ │ └── raspbian │ │ │ ├── install.sh │ │ │ ├── nethome │ │ │ ├── readme.txt │ │ │ ├── readme_upgrade_old.txt │ │ │ ├── rpi_daemon_start.sh │ │ │ ├── uninstall.sh │ │ │ ├── upgrade.sh │ │ │ └── upgrade_nethome.sh │ │ ├── launch │ │ ├── HomeManager_32.bat │ │ ├── HomeManager_32.sh │ │ ├── HomeManager_64.bat │ │ ├── HomeManager_64.sh │ │ ├── HomeManager_macosx_carbon.sh │ │ ├── HomeManager_macosx_cocoa.sh │ │ ├── HomeManager_macosx_cocoa_64.sh │ │ ├── HomeManager_raspian.sh │ │ └── HomeManager_raspian_debug.sh │ │ ├── local-install │ │ └── home-install.sh │ │ ├── setup_linux32.sh │ │ ├── setup_linux64.sh │ │ ├── setup_macosx_carbon.sh │ │ ├── setup_macosx_cocoa.sh │ │ ├── setup_macosx_cocoa64.sh │ │ ├── setup_win32.bat │ │ └── setup_win64.bat │ ├── site │ ├── CyberLink4JavaLicense.txt │ ├── drivers │ │ ├── linux │ │ │ └── ftdi │ │ │ │ ├── 98-nethome.rules │ │ │ │ ├── ftdi_fhz1000.sh │ │ │ │ ├── ftdi_fhz1300.sh │ │ │ │ ├── ftdi_tellstick.sh │ │ │ │ ├── install.sh │ │ │ │ └── readme.txt │ │ └── windows │ │ │ ├── CUL.inf │ │ │ ├── FTDI_VCP │ │ │ ├── Static │ │ │ │ ├── amd64 │ │ │ │ │ └── ftd2xx.lib │ │ │ │ └── i386 │ │ │ │ │ └── ftd2xx.lib │ │ │ ├── amd64 │ │ │ │ ├── ftbusui.dll │ │ │ │ ├── ftcserco.dll │ │ │ │ ├── ftd2xx.lib │ │ │ │ ├── ftd2xx64.dll │ │ │ │ ├── ftdibus.sys │ │ │ │ ├── ftlang.dll │ │ │ │ ├── ftser2k.sys │ │ │ │ └── ftserui2.dll │ │ │ ├── dpinst-amd64.exe │ │ │ ├── dpinst-x86.exe │ │ │ ├── ftd2xx.h │ │ │ ├── ftdibus.cat │ │ │ ├── ftdibus.inf │ │ │ ├── ftdiport.cat │ │ │ ├── ftdiport.inf │ │ │ ├── i386 │ │ │ │ ├── ftbusui.dll │ │ │ │ ├── ftcserco.dll │ │ │ │ ├── ftd2xx.dll │ │ │ │ ├── ftd2xx.lib │ │ │ │ ├── ftdibus.sys │ │ │ │ ├── ftlang.dll │ │ │ │ ├── ftser2k.sys │ │ │ │ └── ftserui2.dll │ │ │ ├── readme.txt │ │ │ └── setup.exe │ │ │ ├── FTDI_VCP_8_1 │ │ │ ├── Static │ │ │ │ ├── amd64 │ │ │ │ │ └── ftd2xx.lib │ │ │ │ └── i386 │ │ │ │ │ └── ftd2xx.lib │ │ │ ├── amd64 │ │ │ │ ├── ftbusui.dll │ │ │ │ ├── ftcserco.dll │ │ │ │ ├── ftd2xx.lib │ │ │ │ ├── ftd2xx64.dll │ │ │ │ ├── ftdibus.sys │ │ │ │ ├── ftlang.dll │ │ │ │ ├── ftser2k.sys │ │ │ │ └── ftserui2.dll │ │ │ ├── dpinst-amd64.exe │ │ │ ├── dpinst-x86.exe │ │ │ ├── ftd2xx.h │ │ │ ├── ftdibus.cat │ │ │ ├── ftdibus.inf │ │ │ ├── ftdiport.cat │ │ │ ├── ftdiport.inf │ │ │ ├── i386 │ │ │ │ ├── ftbusui.dll │ │ │ │ ├── ftcserco.dll │ │ │ │ ├── ftd2xx.dll │ │ │ │ ├── ftd2xx.lib │ │ │ │ ├── ftdibus.sys │ │ │ │ ├── ftlang.dll │ │ │ │ ├── ftser2k.sys │ │ │ │ └── ftserui2.dll │ │ │ └── setup.exe │ │ │ ├── JeeLink │ │ │ ├── InstallFirmware.bat │ │ │ ├── bin │ │ │ │ ├── CUL.cpp.hex │ │ │ │ ├── CUL.ino │ │ │ │ ├── avrdude.conf │ │ │ │ ├── avrdude.exe │ │ │ │ └── libusb0.dll │ │ │ ├── drivers │ │ │ │ ├── FTDI USB Drivers │ │ │ │ │ ├── LogoVerificationReport.pdf │ │ │ │ │ ├── amd64 │ │ │ │ │ │ ├── ftbusui.dll │ │ │ │ │ │ ├── ftcserco.dll │ │ │ │ │ │ ├── ftd2xx64.dll │ │ │ │ │ │ ├── ftdibus.sys │ │ │ │ │ │ ├── ftlang.dll │ │ │ │ │ │ ├── ftser2k.sys │ │ │ │ │ │ └── ftserui2.dll │ │ │ │ │ ├── ftd2xx.h │ │ │ │ │ ├── ftdibus.cat │ │ │ │ │ ├── ftdibus.inf │ │ │ │ │ ├── ftdiport.cat │ │ │ │ │ ├── ftdiport.inf │ │ │ │ │ └── i386 │ │ │ │ │ │ ├── ftbusui.dll │ │ │ │ │ │ ├── ftcserco.dll │ │ │ │ │ │ ├── ftd2xx.dll │ │ │ │ │ │ ├── ftdibus.sys │ │ │ │ │ │ ├── ftlang.dll │ │ │ │ │ │ ├── ftser2k.sys │ │ │ │ │ │ └── ftserui2.dll │ │ │ │ ├── README.txt │ │ │ │ ├── arduino-org.cat │ │ │ │ ├── arduino-org.inf │ │ │ │ ├── arduino.cat │ │ │ │ ├── arduino.inf │ │ │ │ ├── dpinst-amd64.exe │ │ │ │ └── dpinst-x86.exe │ │ │ └── readme.txt │ │ │ └── MyUSB_USBtoSerial.inf │ ├── example │ │ ├── Example1.java │ │ ├── Example2.java │ │ └── README.txt │ ├── license.txt │ └── readme.txt │ └── test │ └── java │ └── nu │ └── nethome │ └── home │ └── start │ ├── DocGenerator.java │ ├── FeaturesDoc.csv │ ├── ItemsDoc.csv │ └── StaticHomeItemFactoryTest.java └── server ├── README.txt ├── pom.xml └── src ├── main └── java │ └── nu │ └── nethome │ └── home │ ├── impl │ ├── ActionModel.java │ ├── BootWebServer.java │ ├── CommandLineExecutor.java │ ├── CommandLineParser.java │ ├── EventDistributionStatistics.java │ ├── HomeItemClassInfo.java │ ├── HomeItemFactory.java │ ├── HomeItemFileLoader.java │ ├── HomeItemLoader.java │ ├── HomeManager.java │ ├── HomeManagerStarter.java │ ├── HomeServer.java │ ├── InternalAction.java │ ├── InternalDirectoryEntry.java │ ├── InternalEvent.java │ ├── ItemDirectory.java │ ├── LocalHomeItemProxy.java │ ├── LogFormatter.java │ ├── ModelAttribute.java │ ├── ModelException.java │ ├── MultiHomeItemFactory.java │ ├── PluginHomeItemFactory.java │ ├── Python.java │ ├── ReflectionAttributeModel.java │ ├── SingleHomeItemFactory.java │ ├── StaticHomeItemModel.java │ ├── Upgrader.java │ └── relation │ │ ├── RelationAttribute.java │ │ ├── RelationCache.java │ │ └── RelationItem.java │ ├── item │ ├── Action.java │ ├── Attribute.java │ ├── AttributeModel.java │ ├── AutoCreationInfo.java │ ├── ExecutionFailure.java │ ├── ExtendedLoggerComponent.java │ ├── HomeItem.java │ ├── HomeItemAdapter.java │ ├── HomeItemInfo.java │ ├── HomeItemModel.java │ ├── HomeItemProxy.java │ ├── HomeItemType.java │ ├── IllegalValueException.java │ ├── LoggerComponent.java │ ├── ValueItem.java │ ├── ValueItemLogger.java │ ├── ValueItemLoggerFactory.java │ ├── ValueItemLoggerFileBased.java │ └── ValueItemLoggerH2Database.java │ ├── items │ ├── MDNSScanner.java │ ├── UPnPScanner.java │ └── UsbScanner.java │ ├── system │ ├── DirectoryEntry.java │ ├── Event.java │ ├── FinalEventListener.java │ ├── HomeService.java │ ├── ServiceConfiguration.java │ └── ServiceState.java │ └── util │ ├── EncoderFactory.java │ └── EncoderMessage.java └── test └── java └── nu └── nethome └── home ├── impl ├── ActionModelTest.java ├── AttributeModelTest.java ├── BootWebServerTest.java ├── CommandLineParserTest.java ├── HomeItemClassInfoTest.java ├── HomeServerTest.java ├── LocalHomeItemProxyTest.java ├── MockHomeItem.java ├── MockHomeItemProxy.java ├── MockSafeHomeItem.java ├── StaticHomeItemModelTest.java └── UpgraderTest.java ├── item ├── LoggerComponentFileBasedTest.java └── LoggerComponentH2DatabaseTest.java ├── items └── UsbScannerTest.java └── util └── EncoderFactoryTest.java /.gitattributes: -------------------------------------------------------------------------------- 1 | # Set the default behavior, in case people don't have core.autocrlf set. 2 | * text=auto 3 | 4 | # Handle shell scripts 5 | *.sh text eol=lf 6 | nethome test eol=lf 7 | 8 | # Handle arduino hex file 9 | *.hex eol=crlf -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | #IDEA 2 | target 3 | *.iml 4 | *.ipr 5 | *.iws 6 | ./rxtxSerial.dll 7 | ./librxtxSerial.so 8 | ./demo.xml 9 | *.class 10 | # Package Files # 11 | *.jar 12 | *.war 13 | *.ear -------------------------------------------------------------------------------- /ItemsDoc.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/ItemsDoc.xlsx -------------------------------------------------------------------------------- /JenkinsFile: -------------------------------------------------------------------------------- 1 | #!groovy​ 2 | 3 | node { 4 | stage('Checkout') { 5 | git url: 'https://github.com/NetHome/NetHomeServer.git' 6 | } 7 | 8 | stage('Build') { 9 | withEnv(["JAVA_HOME=${tool 'Java8'}", "PATH+MAVEN=${tool 'Maven3'}/bin:${env.JAVA_HOME}/bin"]) { 10 | sh "mvn --batch-mode -V -U -e clean install -Dsurefire.useFile=false" 11 | } 12 | } 13 | 14 | stage('deploy') { 15 | withCredentials([usernameColonPassword(credentialsId: 'nethomeftp', variable: 'NETHOMEFTP')]) { 16 | if (params.isStaging) { 17 | sh ''' 18 | set +x 19 | cp server-install/target/nethomeservernightly.zip server-install/target/nethomeserverstaging.zip 20 | curl -T server-install/target/nethomeserverstaging.zip ftp://ftpcluster.loopia.se/wiki.nethome.nu/public_html/data/media/ --user $NETHOMEFTP 21 | ''' 22 | } else { 23 | sh ''' 24 | set +x 25 | curl -T server-install/target/nethomeservernightly.zip ftp://ftpcluster.loopia.se/wiki.nethome.nu/public_html/data/media/ --user $NETHOMEFTP 26 | ''' 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /external/SunriseSunsetCalculator/README.markdown: -------------------------------------------------------------------------------- 1 | Sunrise/SunsetLib - Java 2 | ============ 3 | 4 | Description 5 | ----------- 6 | Java library to compute the local sunrise and sunset at a given latitude/longitue and date combination. 7 | 8 | Dependencies 9 | ------------ 10 | None 11 | 12 | Installation 13 | ------------ 14 | Download the jar or clone the repo and run $ mvn clean install to build from source. 15 | 16 | Usage 17 | ----- 18 | Create a SunriseSunsetCalculator with a location and time zone identifier: 19 | 20 | Location location = new Location("39.9522222", "-75.1641667"); 21 | SunriseSunsetCalculator calculator = new SunriseSunsetCalculator(location, "America/New_York"); 22 | 23 | Then call the method for the type of sunrise/sunset you want to calculate: 24 | 25 | String officialSunrise = calculator.getOfficialSunriseForDate(Calendar.getInstance()); 26 | Calendar officialSunset = calculator.getOfficialSunsetCalendarForDate(Calendar.getInstance()); 27 | 28 | Author 29 | ------ 30 | Mike Reedell 31 | 32 | [Donate with Pledgie](http://www.pledgie.com/campaigns/15328) 33 | 34 | License 35 | ------- 36 | Apache License, Version 2.0 37 | [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0) -------------------------------------------------------------------------------- /external/SunriseSunsetCalculator/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | com.luckycatlabs.sotoo 5 | SunriseSunsetCalculator 6 | jar 7 | 1.0 8 | SunriseSunsetCalculator 9 | http://maven.apache.org 10 | 11 | 12 | 13 | org.apache.maven.plugins 14 | maven-compiler-plugin 15 | 2.0.2 16 | 17 | 1.6 18 | 1.6 19 | 20 | 21 | 22 | 23 | 24 | 25 | junit 26 | junit 27 | 4.8.1 28 | test 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /external/SunriseSunsetCalculator/src/main/java/com/luckycatlabs/sunrisesunset/Zenith.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2008-2009 Mike Reedell / LuckyCatLabs. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.luckycatlabs.sunrisesunset; 18 | 19 | import java.math.BigDecimal; 20 | 21 | /** 22 | * Defines the solar declination used in computing the sunrise/sunset. 23 | */ 24 | public class Zenith { 25 | /** Astronomical sunrise/set is when the sun is 18 degrees below the horizon. */ 26 | public static final Zenith ASTRONOMICAL = new Zenith(108); 27 | 28 | /** Nautical sunrise/set is when the sun is 12 degrees below the horizon. */ 29 | public static final Zenith NAUTICAL = new Zenith(102); 30 | 31 | /** Civil sunrise/set (dawn/dusk) is when the sun is 6 degrees below the horizon. */ 32 | public static final Zenith CIVIL = new Zenith(96); 33 | 34 | /** Official sunrise/set is when the sun is 50' below the horizon. */ 35 | public static final Zenith OFFICIAL = new Zenith(90.8333); 36 | 37 | private final BigDecimal degrees; 38 | 39 | public Zenith(double degrees) { 40 | this.degrees = BigDecimal.valueOf(degrees); 41 | } 42 | 43 | public BigDecimal degrees() { 44 | return degrees; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /external/SunriseSunsetCalculator/src/main/ruby/solardatacollector.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2008-2009 Mike Reedell / LuckyCatLabs. 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | 17 | #!/usr/bin/env ruby 18 | 19 | # Takes a years worth of solar data and creates a CSV file from it. 20 | # The data comes from http://www.cmpsolv.com/los/sunsetexp.html 21 | 22 | output = File.new("../testdata/solardata.csv", "w") 23 | month = 0 24 | 25 | File.open("../testdata/solardata.txt", "r").grep(/(\d)+\s(([0-1][0-9]|[2][0-3]):([0-5][0-9])(\s)?)+/).each do |line| 26 | line.chop!() 27 | line.gsub!(/\s(DAY)/, '99:99') 28 | line.gsub!(/\s{2}/, ' ') 29 | line.gsub!(/^\s/, '0') 30 | line.gsub!(/\s{1}/, ',') 31 | 32 | #Need a way to grab the day. 33 | date = line.match(/^(\d\d)/) 34 | if( date.to_s == '01' ) 35 | month = month + 1 36 | end 37 | 38 | line.gsub!(/^(\d\d)/, '\1/2008') 39 | line = month.to_s + '/' + line 40 | output.puts(line) 41 | end 42 | -------------------------------------------------------------------------------- /external/SunriseSunsetCalculator/src/test/java/com/luckycatlabs/sunrisesunset/calculator/SolarEventCalculatorTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2008-2009 Mike Reedell / LuckyCatLabs. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.luckycatlabs.sunrisesunset.calculator; 18 | 19 | import static org.junit.Assert.assertEquals; 20 | 21 | import org.junit.Before; 22 | import org.junit.Test; 23 | 24 | import com.luckycatlabs.sunrisesunset.Zenith; 25 | import com.luckycatlabs.sunrisesunset.util.BaseTestCase; 26 | 27 | public class SolarEventCalculatorTest extends BaseTestCase { 28 | 29 | private SolarEventCalculator calc; 30 | 31 | @Before 32 | public void setupCalculator() { 33 | super.setup(10, 1, 2008); 34 | calc = new SolarEventCalculator(location, "America/New_York"); 35 | } 36 | 37 | @Test 38 | public void testComputeSunriseTime() { 39 | String localSunriseTime = "07:05"; 40 | assertEquals(localSunriseTime, calc.computeSunriseTime(Zenith.CIVIL, this.eventDate)); 41 | } 42 | 43 | @Test 44 | public void testComputeSunsetTime() { 45 | String localSunsetTime = "18:28"; 46 | assertEquals(localSunsetTime, calc.computeSunsetTime(Zenith.CIVIL, this.eventDate)); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /external/jdring/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | open-nethome 7 | nu.nethome 8 | 1.0 9 | ../../pom.xml 10 | 11 | com.jtheory 12 | jdring 13 | 2.0 14 | jdring 15 | http://jtheory.com/jdring.html 16 | 17 | UTF-8 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /external/jdring/src/main/java/com/jtheory/jdring/AlarmListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * com/jtheory/jdring/AlarmListener.java 3 | * Copyright (C) 1999 - 2004 jtheory creations, Olivier Dedieu et al. 4 | * 5 | * This library is free software; you can redistribute it and/or modify 6 | * it under the terms of the GNU Library General Public License as published 7 | * by the Free Software Foundation; either version 2 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This library is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU Library General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU Library General Public License 16 | * along with this program; if not, write to the Free Software 17 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18 | */ 19 | 20 | package com.jtheory.jdring; 21 | 22 | import java.util.Date; 23 | 24 | /** 25 | * The listener interface for receiving alarm events. 26 | * 27 | * @author Olivier Dedieu, David Sims, Jim Lerner 28 | * @version 1.3, 06/15/2000 29 | */ 30 | public interface AlarmListener { 31 | 32 | /** 33 | * Invoked when an alarm is triggered. 34 | * 35 | * @param entry the AlarmEntry which has been triggered. 36 | */ 37 | public abstract void handleAlarm(AlarmEntry entry); 38 | } 39 | 40 | -------------------------------------------------------------------------------- /external/jdring/src/main/java/com/jtheory/jdring/PastDateException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * com/jtheory/jdring/PastDateException.java 3 | * Copyright (C) 1999 - 2004 jtheory creations, Olivier Dedieu et al. 4 | * 5 | * This library is free software; you can redistribute it and/or modify 6 | * it under the terms of the GNU Library General Public License as published 7 | * by the Free Software Foundation; either version 2 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This library is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU Library General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU Library General Public License 16 | * along with this program; if not, write to the Free Software 17 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18 | */ 19 | 20 | package com.jtheory.jdring; 21 | 22 | public class PastDateException extends Exception { 23 | // Nothing 24 | } 25 | -------------------------------------------------------------------------------- /external/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4.0.0 4 | 5 | open-nethome 6 | nu.nethome 7 | 1.0 8 | 9 | external 10 | pom 11 | external 12 | http://maven.apache.org 13 | 14 | UTF-8 15 | 16 | 17 | 18 | 19 | jdring 20 | SunriseSunsetCalculator 21 | 22 | -------------------------------------------------------------------------------- /home-items/core-items/src/main/assembly/distribution.xml: -------------------------------------------------------------------------------- 1 | 21 | 22 | 25 | distribution 26 | 27 | dir 28 | zip 29 | 30 | 31 | 32 | true 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /home-items/core-items/src/main/java/nu/nethome/home/items/net/wemo/BridgeDevice.java: -------------------------------------------------------------------------------- 1 | package nu.nethome.home.items.net.wemo; 2 | 3 | /** 4 | * 5 | */ 6 | public class BridgeDevice { 7 | private final int deviceIndex; 8 | private final String friendlyName; 9 | private final String iconVersion; 10 | private final String firmwareVersion; 11 | private final BridgeDeviceStatus status; 12 | 13 | public BridgeDevice(int deviceIndex, String deviceID, String friendlyName, String iconVersion, String firmwareVersion, String capabilityIDs, String currentState) { 14 | this.status = new BridgeDeviceStatus(deviceID, capabilityIDs, currentState); 15 | this.deviceIndex = deviceIndex; 16 | this.friendlyName = friendlyName; 17 | this.iconVersion = iconVersion; 18 | this.firmwareVersion = firmwareVersion; 19 | } 20 | 21 | public int getDeviceIndex() { 22 | return deviceIndex; 23 | } 24 | 25 | public String getDeviceID() { 26 | return status.getDeviceID(); 27 | } 28 | 29 | public String getFriendlyName() { 30 | return friendlyName; 31 | } 32 | 33 | public String getIconVersion() { 34 | return iconVersion; 35 | } 36 | 37 | public String getFirmwareVersion() { 38 | return firmwareVersion; 39 | } 40 | 41 | public String getCapabilityIDs() { 42 | return status.getCapabilityIDs(); 43 | } 44 | 45 | public String getCurrentRawState() { 46 | return status.getCurrentRawState(); 47 | } 48 | 49 | public int getOnState() { 50 | return status.getOnState(); 51 | } 52 | 53 | public int getBrightness() { 54 | return status.getBrightness(); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /home-items/core-items/src/main/java/nu/nethome/home/items/net/wemo/WemoException.java: -------------------------------------------------------------------------------- 1 | package nu.nethome.home.items.net.wemo; 2 | 3 | public class WemoException extends Throwable { 4 | public WemoException(Exception e) { 5 | super(e); 6 | } 7 | 8 | public WemoException(String text) { 9 | super(text); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /home-items/core-items/src/main/java/nu/nethome/home/items/net/wemo/notes.txt: -------------------------------------------------------------------------------- 1 | wsimport -keep -d D:\src\GitHub\NetHomeServer\home-items\core-items\src\main\java -p nu.nethome.home.items.net.wemo.soap -Xno-addressing-databinding BasicService.wsdl 2 | -------------------------------------------------------------------------------- /home-items/core-items/src/main/resources/nu/nethome/home/items/gui/critical.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/core-items/src/main/resources/nu/nethome/home/items/gui/critical.png -------------------------------------------------------------------------------- /home-items/core-items/src/main/resources/nu/nethome/home/items/gui/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/core-items/src/main/resources/nu/nethome/home/items/gui/home.png -------------------------------------------------------------------------------- /home-items/core-items/src/main/resources/nu/nethome/home/items/gui/home16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/core-items/src/main/resources/nu/nethome/home/items/gui/home16.png -------------------------------------------------------------------------------- /home-items/core-items/src/main/resources/nu/nethome/home/items/gui/info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/core-items/src/main/resources/nu/nethome/home/items/gui/info.png -------------------------------------------------------------------------------- /home-items/core-items/src/main/resources/nu/nethome/home/items/gui/warn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/core-items/src/main/resources/nu/nethome/home/items/gui/warn.png -------------------------------------------------------------------------------- /home-items/core-items/src/test/java/nu/nethome/home/items/net/wemo/BridgeDeviceStatusTest.java: -------------------------------------------------------------------------------- 1 | package nu.nethome.home.items.net.wemo; 2 | 3 | import org.junit.Before; 4 | import org.junit.Test; 5 | 6 | import static org.hamcrest.MatcherAssert.assertThat; 7 | import static org.hamcrest.Matchers.is; 8 | 9 | /** 10 | * 11 | */ 12 | public class BridgeDeviceStatusTest { 13 | @Before 14 | public void setUp() throws Exception { 15 | 16 | } 17 | 18 | @Test 19 | public void canCreateOffDimmedFull() { 20 | final String offState = "0"; 21 | 22 | BridgeDeviceStatus status = new BridgeDeviceStatus("Foo", false, 255); 23 | 24 | assertThat(status.getOnState(), is(0)); 25 | assertThat(status.getBrightness(), is(255)); 26 | assertThat(status.getCurrentRawState(), is(offState)); 27 | assertThat(status.getCapabilityIDs(), is("10006")); 28 | } 29 | 30 | @Test 31 | public void canCreateOnDimmedHalf() { 32 | final String onState = "1,128:0"; 33 | 34 | BridgeDeviceStatus status = new BridgeDeviceStatus("Foo", true, 128); 35 | 36 | assertThat(status.getOnState(), is(1)); 37 | assertThat(status.getBrightness(), is(128)); 38 | assertThat(status.getCurrentRawState(), is(onState)); 39 | assertThat(status.getCapabilityIDs(), is("10006,10008")); 40 | } 41 | } 42 | 43 | 44 | -------------------------------------------------------------------------------- /home-items/core-items/src/test/java/nu/nethome/home/items/net/wemo/BridgeDeviceTest.java: -------------------------------------------------------------------------------- 1 | package nu.nethome.home.items.net.wemo; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.hamcrest.MatcherAssert.assertThat; 6 | import static org.hamcrest.Matchers.is; 7 | 8 | /** 9 | * 10 | */ 11 | public class BridgeDeviceTest { 12 | 13 | static final String offState = "0,255:0,0:0,,"; 14 | static final String onState = "1,128:0,0:0,,"; 15 | static final String unknownState = ",,,,"; 16 | 17 | @Test 18 | public void canDecodeStateOn() throws Exception { 19 | BridgeDevice device = new BridgeDevice(0, "", "", "", "", "", onState); 20 | assertThat(device.getOnState(), is(1)); 21 | } 22 | 23 | @Test 24 | public void canDecodeStateOff() throws Exception { 25 | BridgeDevice device = new BridgeDevice(0, "", "", "", "", "", offState); 26 | assertThat(device.getOnState(), is(0)); 27 | } 28 | 29 | @Test 30 | public void canDecodeUnknownState() throws Exception { 31 | BridgeDevice device = new BridgeDevice(0, "", "", "", "", "", unknownState); 32 | assertThat(device.getOnState(), is(-1)); 33 | } 34 | 35 | @Test 36 | public void canDecodeBrightness() throws Exception { 37 | BridgeDevice device = new BridgeDevice(0, "", "", "", "", "", onState); 38 | assertThat(device.getBrightness(), is(128)); 39 | } 40 | 41 | @Test 42 | public void canDecodeUnknownBrightness() throws Exception { 43 | BridgeDevice device = new BridgeDevice(0, "", "", "", "", "", unknownState); 44 | assertThat(device.getBrightness(), is(-1)); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /home-items/core-items/src/test/java/nu/nethome/home/items/net/wemo/soap/WemoInsightSwitchClientTest.java: -------------------------------------------------------------------------------- 1 | package nu.nethome.home.items.net.wemo.soap; 2 | 3 | import nu.nethome.home.items.net.wemo.InsightState; 4 | import nu.nethome.home.items.net.wemo.WemoException; 5 | import nu.nethome.home.items.net.wemo.WemoInsightSwitchClient; 6 | import org.junit.Test; 7 | 8 | /** 9 | * 10 | */ 11 | public class WemoInsightSwitchClientTest { 12 | @Test 13 | public void testSetOn() throws Exception, WemoException { 14 | WemoInsightSwitchClient wemoSwitch = new WemoInsightSwitchClient("http://192.168.1.16:49153"); 15 | //WemoInsightSwitchClient wemoSwitch = new WemoInsightSwitchClient("http://127.0.0.1:49000"); 16 | // InsightState insightParameters = wemoSwitch.getInsightParameters(); 17 | // wemoSwitch.setOnState(true); 18 | // boolean onState = wemoSwitch.getOnState(); 19 | // Thread.sleep(1000); 20 | // wemoSwitch.setOnState(false); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /home-items/core-items/src/test/java/nu/nethome/home/system/runner.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.system; 21 | 22 | import nu.nethome.home.impl.HomeManager; 23 | 24 | /** 25 | * Created by IntelliJ IDEA. 26 | * User: Stefan 27 | * Date: 2011-10-12 28 | * Time: 22:06 29 | * To change this template use File | Settings | File Templates. 30 | */ 31 | public class runner extends HomeManager { 32 | 33 | public static void main(String[] args) { 34 | HomeManager me = new HomeManager(); 35 | me.go(args); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /home-items/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4.0.0 4 | 5 | open-nethome 6 | nu.nethome 7 | 1.0 8 | ../pom.xml 9 | 10 | nu.nethome 11 | home-items 12 | ${NethomeVersion} 13 | pom 14 | home-items 15 | http://maven.apache.org 16 | 17 | UTF-8 18 | 19 | 20 | 21 | xerces 22 | xercesImpl 23 | 24 | 25 | junit 26 | junit 27 | test 28 | 29 | 30 | 31 | core-items 32 | web-items 33 | rf-items 34 | 35 | -------------------------------------------------------------------------------- /home-items/rf-items/src/main/assembly/distribution.xml: -------------------------------------------------------------------------------- 1 | 21 | 22 | 25 | distribution 26 | 27 | dir 28 | zip 29 | 30 | 31 | 32 | 33 | 3rdparty 34 | false 35 | 36 | 37 | 38 | 39 | *:${artifact.artifactId}* 40 | 41 | true 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /home-items/rf-items/src/main/java/nu/nethome/home/items/Lamp.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.items; 21 | 22 | public interface Lamp { 23 | 24 | public abstract void on(); 25 | 26 | public abstract void off(); 27 | 28 | public abstract void bright(); 29 | 30 | public abstract void dim(); 31 | 32 | public abstract void toggle(); 33 | 34 | public abstract void dimLoop(); 35 | 36 | public String getState(); 37 | 38 | /** 39 | * @return Returns the m_LocationX. 40 | */ 41 | public String getLocationX(); 42 | 43 | /** 44 | * @param locationX The m_LocationX to set. 45 | */ 46 | public void setLocationX(String locationX); 47 | 48 | /** 49 | * @return Returns the m_LocationY. 50 | */ 51 | public String getLocationY(); 52 | 53 | /** 54 | * @param locationY The m_LocationY to set. 55 | */ 56 | public void setLocationY(String locationY); 57 | 58 | } -------------------------------------------------------------------------------- /home-items/rf-items/src/main/java/nu/nethome/home/items/fineoffset/PeriodCounter.java: -------------------------------------------------------------------------------- 1 | package nu.nethome.home.items.fineoffset; 2 | 3 | public abstract class PeriodCounter { 4 | private long currentPeriod; 5 | private long totalPulsesAtStartOfPeriod; 6 | private long pulsesDuringLastPeriod; 7 | private boolean isInitialized; 8 | 9 | public PeriodCounter() { 10 | } 11 | 12 | public void updateCounter(long currentTotalPulses) { 13 | long newPeriod = getNewPeriod(); 14 | if (!isInitialized) { 15 | currentPeriod = getNewPeriod(); 16 | totalPulsesAtStartOfPeriod = currentTotalPulses; 17 | isInitialized = true; 18 | } else if (currentPeriod != newPeriod) { 19 | pulsesDuringLastPeriod = currentTotalPulses - totalPulsesAtStartOfPeriod; 20 | totalPulsesAtStartOfPeriod = currentTotalPulses; 21 | currentPeriod = newPeriod; 22 | } 23 | } 24 | 25 | public long getPulsesDuringPeriod(long currentTotalPulses) { 26 | updateCounter(currentTotalPulses); 27 | return currentTotalPulses - totalPulsesAtStartOfPeriod; 28 | } 29 | 30 | public String getState() { 31 | return isInitialized ? String.format("%d,%d,%d", currentPeriod, totalPulsesAtStartOfPeriod, pulsesDuringLastPeriod) : ""; 32 | } 33 | 34 | public void setState(String state) { 35 | String parts[] = state.split(","); 36 | if (parts.length == 3) { 37 | currentPeriod = Long.parseLong(parts[0]); 38 | totalPulsesAtStartOfPeriod = Long.parseLong(parts[1]); 39 | pulsesDuringLastPeriod = Long.parseLong(parts[2]); 40 | isInitialized = true; 41 | } 42 | } 43 | 44 | public abstract long getNewPeriod(); 45 | 46 | public long getPulsesDuringLastPeriod() { 47 | return pulsesDuringLastPeriod; 48 | } 49 | } -------------------------------------------------------------------------------- /home-items/rf-items/src/main/java/nu/nethome/home/items/fs20/FS20EventListener.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.items.fs20; 21 | 22 | 23 | /** 24 | * Interface used by FHZ1000PC to manage subscriptions of FS20-Events 25 | * @author Stefan 26 | */ 27 | public interface FS20EventListener { 28 | public void fs20Event(FS20Event ev); 29 | } 30 | -------------------------------------------------------------------------------- /home-items/rf-items/src/main/java/nu/nethome/home/items/hue/HueConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2005-2014, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.items.hue; 21 | 22 | import org.json.JSONObject; 23 | 24 | /** 25 | * 26 | */ 27 | public class HueConfig { 28 | 29 | private final String name; 30 | private final String swVersion; 31 | private final String mac; 32 | 33 | public HueConfig(String name, String swVersion, String mac) { 34 | this.name = name; 35 | this.swVersion = swVersion; 36 | this.mac = mac; 37 | } 38 | 39 | public HueConfig(JSONObject data) { 40 | this.name = data.getString("name"); 41 | this.swVersion = data.getString("swversion"); 42 | this.mac = data.getString("mac"); 43 | } 44 | 45 | public String getName() { 46 | return name; 47 | } 48 | 49 | public String getSwVersion() { 50 | return swVersion; 51 | } 52 | 53 | public String getMac() { 54 | return mac; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /home-items/rf-items/src/main/java/nu/nethome/home/items/hue/HueProcessingException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2005-2014, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.items.hue; 21 | 22 | import org.json.JSONException; 23 | 24 | /** 25 | * 26 | */ 27 | public class HueProcessingException extends Exception { 28 | 29 | int errorCode = 0; 30 | 31 | public HueProcessingException(String message, int code, Throwable cause) { 32 | super(message, cause); 33 | errorCode = code; 34 | } 35 | 36 | public HueProcessingException(String message, int code) { 37 | super(message); 38 | errorCode = code; 39 | } 40 | 41 | public HueProcessingException(JSONException e) { 42 | super(e.getMessage(), e.getCause()); 43 | errorCode = 0; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /home-items/rf-items/src/main/java/nu/nethome/home/items/hue/LightId.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2005-2014, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.items.hue; 21 | 22 | /** 23 | * 24 | */ 25 | public class LightId { 26 | 27 | public final String lampId; 28 | public final String lampName; 29 | 30 | public LightId(String lampId, String lampName) { 31 | this.lampId = lampId; 32 | this.lampName = lampName; 33 | } 34 | 35 | public String getLampId() { 36 | return lampId; 37 | } 38 | 39 | public String getLampName() { 40 | return lampName; 41 | } 42 | 43 | @Override 44 | public boolean equals(Object o) { 45 | if (this == o) return true; 46 | if (o == null || getClass() != o.getClass()) return false; 47 | 48 | LightId lightId = (LightId) o; 49 | 50 | if (!lampId.equals(lightId.lampId)) return false; 51 | if (!lampName.equals(lightId.lampName)) return false; 52 | 53 | return true; 54 | } 55 | 56 | @Override 57 | public int hashCode() { 58 | return lampId.hashCode(); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /home-items/rf-items/src/main/java/nu/nethome/home/items/jeelink/PortException.java: -------------------------------------------------------------------------------- 1 | package nu.nethome.home.items.jeelink; 2 | 3 | /** 4 | * 5 | */ 6 | public class PortException extends Exception { 7 | public PortException(String message) { 8 | super(message); 9 | } 10 | 11 | public PortException(String message, Throwable cause) { 12 | super(message, cause); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /home-items/rf-items/src/main/java/nu/nethome/home/items/tellstick/FineOffsetEventReceiver.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.items.tellstick; 21 | 22 | import nu.nethome.coders.decoders.FineOffsetDecoder; 23 | import nu.nethome.coders.decoders.NexaLDecoder; 24 | import nu.nethome.util.ps.BitString; 25 | import nu.nethome.util.ps.ProtocolDecoderSink; 26 | 27 | public class FineOffsetEventReceiver extends TellstickEventReceiverAdaptor { 28 | 29 | FineOffsetDecoder decoder = new FineOffsetDecoder(); 30 | 31 | public FineOffsetEventReceiver(ProtocolDecoderSink sink) { 32 | decoder.setTarget(sink); 33 | } 34 | 35 | @Override 36 | public void processActiveEvent(TellstickEvent event) { 37 | decoder.decodeMessage(new BitString(Long.parseLong(event.getDataString(), 16), 40)); 38 | } 39 | 40 | @Override 41 | public String getEventType() { 42 | return "protocol:fineoffset;model:"; 43 | } 44 | 45 | @Override 46 | public String getProtocolName() { 47 | return "FineOffset"; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /home-items/rf-items/src/main/java/nu/nethome/home/items/tellstick/NexaLEventReceiver.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.items.tellstick; 21 | 22 | import nu.nethome.coders.decoders.NexaLDecoder; 23 | import nu.nethome.util.ps.ProtocolDecoderSink; 24 | 25 | public class NexaLEventReceiver extends TellstickEventReceiverAdaptor { 26 | 27 | NexaLDecoder decoder = new NexaLDecoder(); 28 | 29 | public NexaLEventReceiver(ProtocolDecoderSink sink) { 30 | decoder.setTarget(sink); 31 | } 32 | 33 | @Override 34 | public void processActiveEvent(TellstickEvent event) { 35 | decoder.decodeMessage(event.getData()); 36 | } 37 | 38 | @Override 39 | public String getEventType() { 40 | return "protocol:arctech;model:selflearning"; 41 | } 42 | 43 | @Override 44 | public String getProtocolName() { 45 | return "NexaL"; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /home-items/rf-items/src/main/java/nu/nethome/home/items/tellstick/RawMessage.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.items.tellstick; 21 | 22 | import java.util.Date; 23 | 24 | /** 25 | * Created by Stefan 2013-11-21 26 | */ 27 | public class RawMessage { 28 | private int[] data; 29 | private int repeat; 30 | private Date creationTime; 31 | 32 | RawMessage(int[] data, int repeat) { 33 | this(data, repeat, new Date()); 34 | } 35 | 36 | public RawMessage(int[] data, int repeat, Date creationTime) { 37 | this.data = data; 38 | this.repeat = repeat; 39 | this.creationTime = creationTime; 40 | } 41 | 42 | int[] getData() { 43 | return data; 44 | } 45 | 46 | int getRepeat() { 47 | return repeat; 48 | } 49 | 50 | public Date getCreationTime() { 51 | return creationTime; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /home-items/rf-items/src/main/java/nu/nethome/home/items/tellstick/TellstickEventReceiver.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.items.tellstick; 21 | 22 | public interface TellstickEventReceiver { 23 | void processEvent(TellstickEvent event); 24 | String getEventType(); 25 | String getProtocolName(); 26 | void setActive(boolean status); 27 | boolean isActive(); 28 | } 29 | -------------------------------------------------------------------------------- /home-items/rf-items/src/main/java/nu/nethome/home/items/tellstick/TellstickEventReceiverAdaptor.java: -------------------------------------------------------------------------------- 1 | package nu.nethome.home.items.tellstick; 2 | 3 | /** 4 | * 5 | */ 6 | public abstract class TellstickEventReceiverAdaptor implements TellstickEventReceiver { 7 | private boolean active = true; 8 | @Override 9 | public void setActive(boolean status) { 10 | active = status; 11 | } 12 | 13 | @Override 14 | public boolean isActive() { 15 | return active; 16 | } 17 | 18 | @Override 19 | public void processEvent(TellstickEvent event) { 20 | if (active) { 21 | processActiveEvent(event); 22 | } 23 | } 24 | 25 | protected abstract void processActiveEvent(TellstickEvent event); 26 | } 27 | -------------------------------------------------------------------------------- /home-items/rf-items/src/main/java/nu/nethome/home/items/tellstick/UPMEventReceiver.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.items.tellstick; 21 | 22 | import nu.nethome.coders.decoders.UPMDecoder; 23 | import nu.nethome.util.ps.ProtocolDecoderSink; 24 | 25 | public class UPMEventReceiver extends TellstickEventReceiverAdaptor { 26 | 27 | UPMDecoder decoder = new UPMDecoder(); 28 | 29 | public UPMEventReceiver(ProtocolDecoderSink sink) { 30 | decoder.setTarget(sink); 31 | } 32 | 33 | @Override 34 | public void processActiveEvent(TellstickEvent event) { 35 | long binaryData = event.getData() | 0xC00000000L; 36 | decoder.decodeMessage(binaryData); 37 | } 38 | 39 | @Override 40 | public String getEventType() { 41 | return "protocol:mandolyn;model:temperaturehumidity"; 42 | } 43 | 44 | @Override 45 | public String getProtocolName() { 46 | return "UPM"; 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /home-items/rf-items/src/test/java/nu/nethome/home/items/hue/LightStateTest.java: -------------------------------------------------------------------------------- 1 | package nu.nethome.home.items.hue; 2 | 3 | import org.junit.Before; 4 | import org.junit.Test; 5 | 6 | import static org.hamcrest.MatcherAssert.assertThat; 7 | import static org.hamcrest.Matchers.is; 8 | 9 | /** 10 | * 11 | */ 12 | public class LightStateTest { 13 | @Before 14 | public void setUp() throws Exception { 15 | 16 | } 17 | 18 | @Test 19 | public void canCheckForColorTemperature() throws Exception { 20 | LightState lightStateWithCT = new LightState(10, 5); 21 | LightState lightStateWithoutCT = new LightState(10, 10, 20); 22 | 23 | assertThat(lightStateWithCT.hasColorTemperature(), is(true)); 24 | assertThat(lightStateWithoutCT.hasColorTemperature(), is(false)); 25 | } 26 | 27 | @Test 28 | public void canCheckForHueSat() throws Exception { 29 | LightState lightStateWithoutHueSat = new LightState(10, 5); 30 | LightState lightStateWithHueSat = new LightState(10, 10, 20); 31 | 32 | assertThat(lightStateWithHueSat.hasHueSat(), is(true)); 33 | assertThat(lightStateWithoutHueSat.hasHueSat(), is(false)); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /home-items/rf-items/src/test/java/nu/nethome/home/items/jeelink/JeeLinkPortTest.java: -------------------------------------------------------------------------------- 1 | package nu.nethome.home.items.jeelink; 2 | 3 | import org.junit.Ignore; 4 | import org.junit.Test; 5 | 6 | /** 7 | * 8 | */ 9 | public class JeeLinkPortTest { 10 | 11 | @Ignore 12 | @Test 13 | public void getVersion() throws Exception { 14 | JeeLinkPort jeeLinkPort = new JeeLinkPort(); 15 | jeeLinkPort.readArduinoVersion("COM7"); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /home-items/rf-items/src/test/java/nu/nethome/home/items/jeelink/JeeLinkProtocolPortTest.java: -------------------------------------------------------------------------------- 1 | package nu.nethome.home.items.jeelink; 2 | 3 | import org.junit.Ignore; 4 | import org.junit.Test; 5 | 6 | /** 7 | * 8 | */ 9 | public class JeeLinkProtocolPortTest { 10 | 11 | @Ignore 12 | @Test 13 | public void testReadingVersion() throws Exception { 14 | 15 | JeeLinkProtocolPort port = new JeeLinkProtocolPort("COM7", null); 16 | 17 | Thread.sleep(30000); 18 | 19 | port.getReportedVersion(); 20 | 21 | port.close(); 22 | 23 | Thread.sleep(5000); 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /home-items/rf-items/src/test/java/nu/nethome/home/items/tellstick/TellstickEventTest.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.items.tellstick; 21 | 22 | import org.junit.Test; 23 | 24 | import static org.hamcrest.MatcherAssert.assertThat; 25 | import static org.hamcrest.Matchers.is; 26 | 27 | /** 28 | * User: Stefan 29 | * Date: 2013-07-30 30 | * Time: 17:07 31 | */ 32 | public class TellstickEventTest { 33 | 34 | @Test 35 | public void canDecodeUPM() { 36 | String data = "+Wclass:sensor;protocol:mandolyn;model:temperaturehumidity;data:0x275146C6;"; 37 | 38 | TellstickEvent event = new TellstickEvent(data); 39 | 40 | assertThat(event.getData(), is(0x275146C6L)); 41 | assertThat(event.getModel(), is("temperaturehumidity")); 42 | assertThat(event.getProtocol(), is("mandolyn")); 43 | assertThat(event.getSignalClass(), is("sensor")); 44 | assertThat(event.getEventProtocolModel(), is("protocol:mandolyn;model:temperaturehumidity")); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /home-items/rf-items/src/test/java/nu/nethome/home/items/zwave/ZWaveControllerTest.java: -------------------------------------------------------------------------------- 1 | package nu.nethome.home.items.zwave; 2 | 3 | import nu.nethome.home.impl.LocalHomeItemProxy; 4 | import nu.nethome.home.item.HomeItemProxy; 5 | import org.junit.Before; 6 | import org.junit.Test; 7 | 8 | import static org.hamcrest.CoreMatchers.is; 9 | import static org.hamcrest.MatcherAssert.assertThat; 10 | 11 | public class ZWaveControllerTest { 12 | 13 | private ZWaveController zWaveController; 14 | private HomeItemProxy proxy; 15 | 16 | @Before 17 | public void setUp() throws Exception { 18 | zWaveController = new ZWaveController(); 19 | proxy = new LocalHomeItemProxy(zWaveController); 20 | } 21 | 22 | @Test 23 | public void getEmptyNodes() throws Exception { 24 | assertThat(proxy.getAttributeValue("Nodes"), is("")); 25 | } 26 | 27 | @Test 28 | public void getSetNodes() throws Exception { 29 | proxy.setAttributeValue("Nodes", "2:17,5:32"); 30 | assertThat(proxy.getAttributeValue("Nodes"), is("2:17,5:32")); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /home-items/web-items/src/main/assembly/distribution.xml: -------------------------------------------------------------------------------- 1 | 21 | 22 | 25 | distribution 26 | 27 | dir 28 | zip 29 | 30 | 31 | 32 | 33 | 3rdparty 34 | false 35 | 36 | 37 | 38 | 39 | *:${artifact.artifactId}* 40 | 41 | true 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /home-items/web-items/src/main/java/nu/nethome/home/items/web/HomeWebServer.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.items.web; 21 | 22 | import javax.servlet.Servlet; 23 | 24 | /** 25 | * User: Stefan 26 | * Date: 2012-05-05 27 | * Time: 16:50 28 | */ 29 | public interface HomeWebServer { 30 | /** 31 | * Register a servlet at the WEB server 32 | * @param URL local part of the URL where the servlet should be installed 33 | * @param s servlet to install 34 | */ 35 | void registerServlet(String URL, Servlet s); 36 | 37 | /** 38 | * Get the configured media directory for this web server 39 | * @return media directory path 40 | */ 41 | public String getMediaDirectory(); 42 | } 43 | -------------------------------------------------------------------------------- /home-items/web-items/src/main/java/nu/nethome/home/items/web/proxy/LoginReq.java: -------------------------------------------------------------------------------- 1 | package nu.nethome.home.items.web.proxy; 2 | 3 | import org.json.JSONObject; 4 | 5 | public class LoginReq { 6 | public final String account; 7 | public final String password; 8 | public final int serverNumber; 9 | public final String serverName; 10 | 11 | public LoginReq(String account, String password, int serverNumber, String serverName) { 12 | this.account = account; 13 | this.password = password; 14 | this.serverNumber = serverNumber; 15 | this.serverName = serverName; 16 | } 17 | 18 | public JSONObject toJson() { 19 | final JSONObject jsonObject = new JSONObject(); 20 | jsonObject.put("account", account); 21 | jsonObject.put("password", password); 22 | jsonObject.put("server", serverNumber); 23 | jsonObject.put("serverName", serverName); 24 | return jsonObject; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /home-items/web-items/src/main/java/nu/nethome/home/items/web/proxy/LoginResp.java: -------------------------------------------------------------------------------- 1 | package nu.nethome.home.items.web.proxy; 2 | 3 | import org.json.JSONObject; 4 | 5 | public class LoginResp { 6 | public final String Id; 7 | public final String server; 8 | 9 | public LoginResp(String Id, String server) { 10 | this.Id = Id; 11 | this.server = server; 12 | } 13 | 14 | public LoginResp(JSONObject json) { 15 | Id = json.getString("id"); 16 | server = json.getString("server"); 17 | } 18 | 19 | public JSONObject toJson() { 20 | final JSONObject jsonObject = new JSONObject(); 21 | jsonObject.put("id", Id); 22 | jsonObject.put("server", server); 23 | return jsonObject; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /home-items/web-items/src/main/java/nu/nethome/home/items/web/rest/exceptions/ExecutionFailureMapper.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2014, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.items.web.rest.exceptions; 21 | 22 | import nu.nethome.home.item.ExecutionFailure; 23 | import nu.nethome.home.items.web.rest.exceptions.RestException; 24 | 25 | import javax.ws.rs.core.Response; 26 | import javax.ws.rs.ext.ExceptionMapper; 27 | import javax.ws.rs.ext.Provider; 28 | import java.net.HttpURLConnection; 29 | 30 | @Provider 31 | public class ExecutionFailureMapper implements ExceptionMapper { 32 | 33 | @Override 34 | public Response toResponse(ExecutionFailure exception) { 35 | return Response.status(HttpURLConnection.HTTP_INTERNAL_ERROR) 36 | .entity(exception.getMessage()) 37 | .header(RestException.ERROR_CODE_HEADER, 200) 38 | .header(RestException.ERROR_MESSAGE_HEADER, "Execution failure") 39 | .build(); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /home-items/web-items/src/main/java/nu/nethome/home/items/web/rest/exceptions/IllegalValueExceptionMapper.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2014, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.items.web.rest.exceptions; 21 | 22 | import nu.nethome.home.item.IllegalValueException; 23 | 24 | import javax.ws.rs.core.Response; 25 | import javax.ws.rs.ext.ExceptionMapper; 26 | import javax.ws.rs.ext.Provider; 27 | import java.net.HttpURLConnection; 28 | 29 | @Provider 30 | public class IllegalValueExceptionMapper implements ExceptionMapper { 31 | 32 | @Override 33 | public Response toResponse(IllegalValueException exception) { 34 | return Response.status(HttpURLConnection.HTTP_INTERNAL_ERROR) 35 | .entity(exception.getMessage()) 36 | .header(RestException.ERROR_CODE_HEADER, 300) 37 | .header(RestException.ERROR_MESSAGE_HEADER, "Illegal Value") 38 | .build(); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /home-items/web-items/src/main/java/nu/nethome/home/items/web/rest/exceptions/RestException.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2014, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.items.web.rest.exceptions; 21 | 22 | public class RestException extends RuntimeException { 23 | public static final String ERROR_CODE_HEADER = "ErrorCode"; 24 | public static final String ERROR_MESSAGE_HEADER = "ErrorMessage"; 25 | public final int errorCode; 26 | public final int httpStatus; 27 | 28 | public RestException(String message, int errorCode, int httpStatus) { 29 | super(message); 30 | this.errorCode = errorCode; 31 | this.httpStatus = httpStatus; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /home-items/web-items/src/main/java/nu/nethome/home/items/web/rest/exceptions/RestExceptionMapper.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2014, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.items.web.rest.exceptions; 21 | 22 | import javax.ws.rs.core.Response; 23 | import javax.ws.rs.ext.ExceptionMapper; 24 | import javax.ws.rs.ext.Provider; 25 | 26 | @Provider 27 | public class RestExceptionMapper implements ExceptionMapper { 28 | 29 | @Override 30 | public Response toResponse(RestException exception) { 31 | return Response.status(exception.httpStatus) 32 | .entity(exception.getMessage()) 33 | .header(RestException.ERROR_CODE_HEADER, exception.errorCode) 34 | .header(RestException.ERROR_MESSAGE_HEADER, exception.getMessage()) 35 | .build(); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /home-items/web-items/src/main/java/nu/nethome/home/items/web/servergui/CategorizedItemList.java: -------------------------------------------------------------------------------- 1 | package nu.nethome.home.items.web.servergui; 2 | 3 | import nu.nethome.home.item.HomeItemModel; 4 | import nu.nethome.home.item.HomeItemProxy; 5 | import nu.nethome.home.system.DirectoryEntry; 6 | import nu.nethome.home.system.HomeService; 7 | 8 | import java.util.*; 9 | 10 | /** 11 | * 12 | */ 13 | public class CategorizedItemList { 14 | private String category; 15 | private List items; 16 | 17 | public CategorizedItemList(String category) { 18 | this.category = category; 19 | items = new ArrayList<>(); 20 | } 21 | 22 | public void addItem(HomeItemProxy item) { 23 | items.add(item); 24 | } 25 | 26 | public String getCategory() { 27 | return category; 28 | } 29 | 30 | public List getItems() { 31 | return Collections.unmodifiableList(items); 32 | } 33 | 34 | public static Map categorizeItems(HomeService server) { 35 | Map itemCategories = new HashMap<>(); 36 | for (DirectoryEntry directoryEntry : server.listInstances("")) { 37 | HomeItemProxy item = server.openInstance(directoryEntry.getInstanceName()); 38 | HomeItemModel model = item.getModel(); 39 | CategorizedItemList category = itemCategories.get(model.getCategory()); 40 | if (category == null) { 41 | category = new CategorizedItemList(model.getCategory()); 42 | itemCategories.put(model.getCategory(), category); 43 | } 44 | category.addItem(item); 45 | } 46 | return itemCategories; 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /home-items/web-items/src/main/java/nu/nethome/home/items/web/servergui/DefaultPageIdentity.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.items.web.servergui; 21 | 22 | public interface DefaultPageIdentity { 23 | String getDefaultPage(); 24 | void setDefaultPage(String planPage); 25 | } 26 | -------------------------------------------------------------------------------- /home-items/web-items/src/main/java/nu/nethome/home/items/web/servergui/EditControl.java: -------------------------------------------------------------------------------- 1 | package nu.nethome.home.items.web.servergui; 2 | 3 | import nu.nethome.home.system.HomeService; 4 | 5 | public interface EditControl { 6 | String print(HomeGUIArguments arguments, HomeService server); 7 | } 8 | -------------------------------------------------------------------------------- /home-items/web-items/src/main/java/nu/nethome/home/items/web/servergui/EditControlAdapter.java: -------------------------------------------------------------------------------- 1 | package nu.nethome.home.items.web.servergui; 2 | 3 | import nu.nethome.home.system.HomeService; 4 | 5 | public class EditControlAdapter implements EditControl { 6 | private String control; 7 | 8 | public EditControlAdapter(String control) { 9 | this.control = control; 10 | } 11 | 12 | @Override 13 | public String print(HomeGUIArguments arguments, HomeService server) { 14 | return control; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /home-items/web-items/src/main/java/nu/nethome/home/items/web/servergui/EditPermission.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2015, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.items.web.servergui; 21 | 22 | public interface EditPermission { 23 | boolean isEditPermitted(); 24 | } 25 | -------------------------------------------------------------------------------- /home-items/web-items/src/main/java/nu/nethome/home/items/web/servergui/ItemEvent.java: -------------------------------------------------------------------------------- 1 | package nu.nethome.home.items.web.servergui; 2 | 3 | import nu.nethome.home.system.Event; 4 | 5 | import java.util.Arrays; 6 | import java.util.Date; 7 | import java.util.HashSet; 8 | import java.util.Set; 9 | 10 | public class ItemEvent { 11 | private Event event; 12 | private String content; 13 | private Date received; 14 | private long id; 15 | private boolean wasHandled; 16 | private static Long idCounter = (long) 0; 17 | 18 | public ItemEvent(Event event, String content, boolean wasHandled) { 19 | id = getNewId(); 20 | updateEvent(event, wasHandled); 21 | this.content = content; 22 | } 23 | 24 | public void updateEvent(Event event, boolean wasHandled) { 25 | this.event = event; 26 | this.wasHandled = wasHandled; 27 | received = new Date(); 28 | } 29 | 30 | private static long getNewId() { 31 | synchronized (idCounter) { 32 | idCounter++; 33 | return idCounter; 34 | } 35 | } 36 | 37 | public Event getEvent() { 38 | return event; 39 | } 40 | 41 | public Date getReceived() { 42 | return received; 43 | } 44 | 45 | public String getContent() { 46 | return content; 47 | } 48 | 49 | public long getId() { 50 | return id; 51 | } 52 | 53 | public boolean getWasHandled() { 54 | return wasHandled; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /home-items/web-items/src/main/java/nu/nethome/home/items/web/servergui/attributes/PasswordAttributePrinter.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.items.web.servergui.attributes; 21 | 22 | import nu.nethome.home.items.web.servergui.attributes.StringAttributePrinter; 23 | 24 | /** 25 | * An attribute printer for the "Password" attribute type 26 | * 27 | * @author Stefan 28 | */ 29 | public class PasswordAttributePrinter extends StringAttributePrinter { 30 | 31 | @Override 32 | public String getTypeName() { 33 | return "Password"; 34 | } 35 | 36 | @Override 37 | protected String getInputType() { 38 | return "password"; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /home-items/web-items/src/main/java/nu/nethome/home/items/web/servergui/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | /** 21 | * The homegui package contains classes for the Home WEB GUI. The implementation is 22 | * separated into page plugins which are loaded from the main class {@link nu.nethome.home.items.web.servergui.HomeGUI}. 23 | */ 24 | package nu.nethome.home.items.web.servergui; 25 | -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/Thumbs.db -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/bg_grey_dotted_h-line_3x1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/bg_grey_dotted_h-line_3x1.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/bg_module_action_600x800.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/bg_module_action_600x800.gif -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/bg_module_info_featured_1x113.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/bg_module_info_featured_1x113.gif -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/bg_module_top_3085af_900x27.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/bg_module_top_3085af_900x27.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/bg_module_top_999999_900x27.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/bg_module_top_999999_900x27.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/bg_module_top_v1_e8e8e8_900x27.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/bg_module_top_v1_e8e8e8_900x27.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/calendar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/calendar.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/clock16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/clock16.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/close.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/cloud16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/cloud16.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/coder32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/coder32.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/coggwheels.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/coggwheels.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/coggwheels16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/coggwheels16.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/coggwheels32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/coggwheels32.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/control.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/control.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/control16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/control16.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/control32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/control32.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/createitem.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | 21 | $(document).ready(function () { 22 | refreshTable(); 23 | }); 24 | 25 | function refreshTable(){ 26 | $('#includeState').load(homeManager.baseURL + "?a=ajax&f=addnodestate"); 27 | $('#eventsTableHolder').load(homeManager.baseURL + "?a=ajax&f=eventtable", function(){ 28 | setTimeout(refreshTable, 1000); 29 | }); 30 | } 31 | 32 | function startInclude() { 33 | $.post(homeManager.baseURL + "?a=ajax&f=startinclude"); 34 | } 35 | 36 | function endInclude() { 37 | $.post(homeManager.baseURL + "?a=ajax&f=endinclude"); 38 | } 39 | 40 | function startExclude() { 41 | $.post(homeManager.baseURL + "?a=ajax&f=startexclude"); 42 | } 43 | 44 | function endExclude() { 45 | $.post(homeManager.baseURL + "?a=ajax&f=endexclude"); 46 | } 47 | -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/critical.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/critical.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/door_new16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/door_new16.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/edit.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/gauge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/gauge.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/gauge16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/gauge16.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/gauge32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/gauge32.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/grey_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/grey_back.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/grey_back_bottom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/grey_back_bottom.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/grey_back_divider.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/grey_back_divider.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/grey_back_top.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/grey_back_top.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/gui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/gui.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/gui16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/gui16.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/gui32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/gui32.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/home.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/home.ico -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/hw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/hw.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/hw16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/hw16.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/hw32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/hw32.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/ie_onload.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | mapMaker.init(); -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/image32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/image32.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/info.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/info16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/info16.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/infra.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/infra.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/infra16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/infra16.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/infra32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/infra32.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/item.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/item.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/item16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/item16.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/item_divider.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/item_divider.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/item_new16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/item_new16.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/lamp16_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/lamp16_off.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/lamp16_on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/lamp16_on.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/lamp32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/lamp32.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/lamp32_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/lamp32_off.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/lamp32_on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/lamp32_on.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/lamp_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/lamp_off.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/lamp_on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/lamp_on.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/left_banner.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/left_banner.jpg -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/link32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/link32.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/log32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/log32.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/menu_divider.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/menu_divider.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/menu_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/menu_left.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/menu_leftedit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/menu_leftedit.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/menu_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/menu_right.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/menu_rightedit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/menu_rightedit.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/menuback.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/menuback.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/menuback_active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/menuback_active.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/menubackedit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/menubackedit.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/next.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/page_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/page_bg.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/pitem_divider.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/pitem_divider.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/plugin16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/plugin16.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/point-hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/point-hover.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/point.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/point.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/port.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/port.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/port16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/port16.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/port32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/port32.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/preferences16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/preferences16.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/preferences32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/preferences32.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/prev.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/prev.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/remote32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/remote32.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/right_banner.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/right_banner.jpg -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/rooms.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | 21 | 22 | function gotoRoomEditPage() { 23 | newUrl = homeManager.baseURL + "?page=edit&a=create&mode=edit&return=rooms&returnsp=" + homeManager.location + "&class_name=Room&room=" + homeManager.location; 24 | location.href=newUrl; 25 | } 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/star16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/star16.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/thermometer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/thermometer.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/thermometer16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/thermometer16.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/thermometer32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/thermometer32.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/timer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/timer.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/timer32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/timer32.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/tooltip-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/tooltip-bg.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/warn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/warn.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/wave16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/home/wave16.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/0h30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/0h30.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/1h30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/1h30.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/2h30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/2h30.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/3h30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/3h30.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/4h30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/4h30.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/5h30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/5h30.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/6h30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/6h30.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/7h30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/7h30.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/8h30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/8h30.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/9h30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/9h30.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/Ch30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/Ch30.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/Dh30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/Dh30.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/Fh30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/Fh30.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/Ph30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/Ph30.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/Sh30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/Sh30.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/WSh30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/WSh30.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/buttonPower.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/buttonPower.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/buttonSilver.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/buttonSilver.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/deh30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/deh30.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/dnh30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/dnh30.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/dsh30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/dsh30.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/dwh30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/dwh30.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/longtop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/longtop.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/mh30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/mh30.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/rdh30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/rdh30.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/rhh30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/rhh30.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/rth30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/rth30.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/rwh30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/rwh30.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/silverButtonOff.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/silverButtonOff.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/silverButtonOn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/silverButtonOn.png -------------------------------------------------------------------------------- /home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/top.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/home-items/web-items/src/main/resources/nu/nethome/home/items/web/temp/top.png -------------------------------------------------------------------------------- /home-items/web-items/src/test/java/nu/nethome/home/items/infra/PlanTest.java: -------------------------------------------------------------------------------- 1 | package nu.nethome.home.items.infra; 2 | 3 | import org.junit.Before; 4 | import org.junit.Ignore; 5 | import org.junit.Test; 6 | 7 | import static org.hamcrest.MatcherAssert.assertThat; 8 | import static org.hamcrest.Matchers.is; 9 | 10 | /** 11 | * 12 | */ 13 | public class PlanTest { 14 | 15 | private Plan plan; 16 | 17 | @Before 18 | public void setUp() throws Exception { 19 | plan = new Plan(); 20 | } 21 | 22 | @Test 23 | public void canRemoveNonExistingItem() throws Exception { 24 | plan.setItems(""); 25 | plan.removeItem("1"); 26 | assertThat(plan.getItems(), is("")); 27 | } 28 | 29 | @Test 30 | public void canRemoveItem() throws Exception { 31 | plan.setItems("1,2,3"); 32 | plan.removeItem("1"); 33 | assertThat(plan.getItems(), is("2,3")); 34 | } 35 | 36 | @Test 37 | public void canAddFirstItem() throws Exception { 38 | plan.setItems(""); 39 | plan.addItem("1"); 40 | assertThat(plan.getItems(), is("1")); 41 | } 42 | 43 | @Test 44 | public void canAddItem() throws Exception { 45 | plan.setItems("1"); 46 | plan.addItem("2"); 47 | assertThat(plan.getItems(), is("1,2")); 48 | } 49 | 50 | @Test 51 | public void doesNotAddDuplicate() throws Exception { 52 | plan.setItems("1"); 53 | plan.addItem("1"); 54 | assertThat(plan.getItems(), is("1")); 55 | } 56 | 57 | } 58 | -------------------------------------------------------------------------------- /home-items/web-items/src/test/java/nu/nethome/home/items/web/servergui/MediaPageTest.java: -------------------------------------------------------------------------------- 1 | package nu.nethome.home.items.web.servergui; 2 | 3 | import nu.nethome.home.system.HomeService; 4 | import org.junit.Test; 5 | 6 | import java.io.File; 7 | 8 | import static org.hamcrest.MatcherAssert.assertThat; 9 | import static org.hamcrest.Matchers.is; 10 | import static org.mockito.Mockito.mock; 11 | 12 | public class MediaPageTest { 13 | @Test 14 | public void canIdentifyMediaFile() throws Exception { 15 | final MediaPage mediaPage = new MediaPage("", mock(HomeService.class), ""); 16 | 17 | assertThat(mediaPage.isImageFile(new File("foo.bar")), is(false)); 18 | assertThat(mediaPage.isImageFile(new File("foo")), is(false)); 19 | assertThat(mediaPage.isImageFile(new File("foo.jpg.txt")), is(false)); 20 | 21 | assertThat(mediaPage.isImageFile(new File("foo.jpg")), is(true)); 22 | assertThat(mediaPage.isImageFile(new File("foo.png")), is(true)); 23 | assertThat(mediaPage.isImageFile(new File("foo.gif")), is(true)); 24 | assertThat(mediaPage.isImageFile(new File("foo.bmp")), is(true)); 25 | assertThat(mediaPage.isImageFile(new File("foo.JPEG")), is(true)); 26 | assertThat(mediaPage.isImageFile(new File("foo.fie.PNG")), is(true)); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /home-items/web-items/src/test/java/nu/nethome/home/system/WebRunner.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.system; 21 | 22 | import nu.nethome.home.impl.HomeManager; 23 | 24 | 25 | public class WebRunner extends HomeManager { 26 | 27 | public static void main(String[] args) { 28 | HomeManager me = new HomeManager(); 29 | me.go(args); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /server-install/src/main/java/nu/nethome/home/start/StaticHomeManagerStarter.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.start; 21 | 22 | import nu.nethome.home.impl.HomeItemFactory; 23 | import nu.nethome.home.impl.HomeManagerStarter; 24 | 25 | /** 26 | * Created by Stefan 2013-11-10 27 | */ 28 | public class StaticHomeManagerStarter extends HomeManagerStarter { 29 | public static void main(String[] args) { 30 | HomeManagerStarter me = new StaticHomeManagerStarter(); 31 | HomeItemFactory staticFactory = new StaticHomeItemFactory(); 32 | me.go(args, staticFactory); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /server-install/src/main/lib/rxtx/INSTALL: -------------------------------------------------------------------------------- 1 | Trent Here. I do those ugly brown pages at rxtx.org. Documentation is not 2 | what I do well :) So please help me when you see problems or something is 3 | confusing. 4 | 5 | For more information provided by end users please visit the rxtx wiki at 6 | http://rxtx.qbang.org/wiki. This is also where you can help. 7 | 8 | Short Install Instructions 9 | 10 | Windows 11 | 12 | RXTXcomm.jar goes in \jre\lib\ext (under java) 13 | rxtxSerial.dll goes in \jre\bin 14 | 15 | Mac OS X (x86 and ppc) (there is an Installer with the source) 16 | 17 | RXTXcomm.jar goes in /Library/Java/Extensions 18 | librxtxSerial.jnilib goes in /Library/Java/Extensions 19 | Run fixperm.sh thats in the directory. Fix perms is in the Mac_OS_X 20 | subdirectory. 21 | 22 | Linux (only x86, x86_64, ia64 here but more in the ToyBox) 23 | 24 | RXTXcomm.jar goes in /jre/lib/ext (under java) 25 | librxtxSerial.so goes in /jre/lib/[machine type] (i386 for instance) 26 | Make sure the user is in group lock or uucp so lockfiles work. 27 | 28 | Solaris (sparc only so far) 29 | 30 | RXTXcomm.jar goes in /jre/lib/ext (under java) 31 | librxtxSerial.so goes in /jre/lib/[machine type] 32 | Make sure the user is in group uucp so lockfiles work. 33 | 34 | 35 | 36 | 37 | A person is added to group lock or uucp by editing /etc/groups. Distributions 38 | have various tools but this works: 39 | 40 | lock:x:54: becomes: 41 | lock:x:53:jarvi,taj 42 | 43 | Now jarvi and taj are in group lock. 44 | 45 | Also make sure jarvi and taj have read and write permissions on the port. 46 | 47 | 48 | 49 | 50 | If there are problems please help each other on the wiki and ask questions 51 | on the mail-list. User contributed changes will be used here in the next 52 | release. If you don't like the documentation, you can improve it. 53 | 54 | 55 | -- 56 | Trent Jarvi 57 | tjarvi@qbang.org 58 | -------------------------------------------------------------------------------- /server-install/src/main/lib/rxtx/Linux/arm6hf/librxtxSerial.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/main/lib/rxtx/Linux/arm6hf/librxtxSerial.so -------------------------------------------------------------------------------- /server-install/src/main/lib/rxtx/Linux/i686-unknown-linux-gnu/librxtxParallel.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/main/lib/rxtx/Linux/i686-unknown-linux-gnu/librxtxParallel.so -------------------------------------------------------------------------------- /server-install/src/main/lib/rxtx/Linux/i686-unknown-linux-gnu/librxtxSerial.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/main/lib/rxtx/Linux/i686-unknown-linux-gnu/librxtxSerial.so -------------------------------------------------------------------------------- /server-install/src/main/lib/rxtx/Linux/ia64-unkown-linux-gnu/librxtxSerial.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/main/lib/rxtx/Linux/ia64-unkown-linux-gnu/librxtxSerial.so -------------------------------------------------------------------------------- /server-install/src/main/lib/rxtx/Linux/x86_64-unknown-linux-gnu/librxtxSerial.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/main/lib/rxtx/Linux/x86_64-unknown-linux-gnu/librxtxSerial.so -------------------------------------------------------------------------------- /server-install/src/main/lib/rxtx/Mac_OS_X/README: -------------------------------------------------------------------------------- 1 | Wed Mar 1 12:05:10 MST 2006 2 | We forgot to update the Mac OS X binary. Previously, it was an old version 3 | (RXTX-2.1-7pre20). This has now been corrected. 4 | 5 | -------------------------------------------------------------------------------- /server-install/src/main/lib/rxtx/Mac_OS_X/librxtxSerial.jnilib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/main/lib/rxtx/Mac_OS_X/librxtxSerial.jnilib -------------------------------------------------------------------------------- /server-install/src/main/lib/rxtx/Windows/i368-mingw32/README: -------------------------------------------------------------------------------- 1 | Wed Mar 1 12:01:05 MST 2006 2 | rxtxSerial.dll had to be recomopiled to link in missing native methods. 3 | 4 | -------------------------------------------------------------------------------- /server-install/src/main/lib/rxtx/Windows/i368-mingw32/rxtxParallel.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/main/lib/rxtx/Windows/i368-mingw32/rxtxParallel.dll -------------------------------------------------------------------------------- /server-install/src/main/lib/rxtx/Windows/i368-mingw32/rxtxSerial.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/main/lib/rxtx/Windows/i368-mingw32/rxtxSerial.dll -------------------------------------------------------------------------------- /server-install/src/main/lib/rxtx/Windows/win-x64/rxtxParallel.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/main/lib/rxtx/Windows/win-x64/rxtxParallel.dll -------------------------------------------------------------------------------- /server-install/src/main/lib/rxtx/Windows/win-x64/rxtxSerial.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/main/lib/rxtx/Windows/win-x64/rxtxSerial.dll -------------------------------------------------------------------------------- /server-install/src/main/lib/swt/README: -------------------------------------------------------------------------------- 1 | SWT Version 3.7 2 | Downloaded from: http://download.eclipse.org/eclipse/downloads/drops/R-3.7-201106131736/index.php#SWT 3 | -------------------------------------------------------------------------------- /server-install/src/main/resources/SignedTellstickDrivers.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/main/resources/SignedTellstickDrivers.zip -------------------------------------------------------------------------------- /server-install/src/main/resources/media/apartment1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/main/resources/media/apartment1.jpg -------------------------------------------------------------------------------- /server-install/src/main/resources/media/button_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/main/resources/media/button_icon.png -------------------------------------------------------------------------------- /server-install/src/main/resources/media/button_icon_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/main/resources/media/button_icon_down.png -------------------------------------------------------------------------------- /server-install/src/main/resources/media/home.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/main/resources/media/home.jpg -------------------------------------------------------------------------------- /server-install/src/main/resources/media/home_back.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/main/resources/media/home_back.jpg -------------------------------------------------------------------------------- /server-install/src/main/scripts/install/raspbian/readme.txt: -------------------------------------------------------------------------------- 1 | NetHomeServer Linux installer 2 | 3 | The install.sh script in this directory will install NetHomeServer as a daemon 4 | that will start automatically when the computer is booted. 5 | The script must be run as root: 6 | 7 | chmod +x install.sh 8 | sudo ./install.sh 9 | 10 | This will copy the NetHomeServer files to appropriate locations in the file system 11 | and install it as a daemon running as the user nethome. 12 | To stop the server you type: 13 | 14 | sudo nethome stop 15 | 16 | And to start it again you type: 17 | 18 | sudo nethome start 19 | 20 | The installation files are moved to the following locations: 21 | 22 | Executable files -> /opt/nethome/ 23 | Configuration file -> /etc/opt/nethome 24 | Media files -> /etc/opt/nethome/media 25 | Log files -> /var/log/nethome 26 | Start script -> /etc/init.d/nethome 27 | 28 | To upgrade an existing installation installed this way, you simply run the upgrade script 29 | in the new release: 30 | 31 | chmod +x upgrade.sh 32 | sudo ./upgrade.sh 33 | 34 | This will preserve the current configuration and just upgrade the server files to the current version. 35 | 36 | There is also a complete download/upgrade feature which will download the latest nightly build of OpenNetHome and 37 | upgrade the current installation. This script will also save a backup of each downloaded release, so you can 38 | downgrade to an earlier release if you have problems after an upgrade. To do an upgrade you type: 39 | 40 | sudo nethome upgrade-nightly -------------------------------------------------------------------------------- /server-install/src/main/scripts/install/raspbian/rpi_daemon_start.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | PID_ROOT=/var/run/nethome 3 | PID_FILE=$PID_ROOT/nethome.pid 4 | CONFIGURATION_ROOT=/etc/opt/nethome 5 | LOG_ROOT=/var/log/nethome 6 | SCRIPTFILE=$0 7 | cd lib 8 | PID=`ps -ef | grep ${SCRIPTFILE} | head -n1 | awk ' {print $2;} '` 9 | echo ${PID} > ${PID_FILE} 10 | chmod a+w ${PID_FILE} 11 | exec java -Djava.library.path=. -jar home.jar -l$LOG_ROOT "$@" $CONFIGURATION_ROOT/config.xml 12 | -------------------------------------------------------------------------------- /server-install/src/main/scripts/install/raspbian/uninstall.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | #Assumes root, make sure to call as 'sudo ./uninstall.sh' 4 | if [ "$(id -u)" != "0" ]; then 5 | echo "This script must be run as root. Call as 'sudo $0'" 1>&2 6 | exit 1 7 | fi 8 | 9 | read -p "Do you wish to remove OpenNetHome and all its configuration files? (y/N)" yn 10 | case $yn in 11 | [Yy]* ) break;; 12 | [Nn]* ) echo "Cancelling uninstallation"; exit;; 13 | * ) echo "Cancelling uninstallation"; exit;; 14 | esac 15 | 16 | INSTALLATION_ROOT=/opt/nethome 17 | CONFIGURATION_ROOT=/etc/opt/nethome 18 | LOG_ROOT=/var/log/nethome 19 | PID_ROOT=/var/run/nethome 20 | 21 | echo "Stopping Server" 22 | update-rc.d /etc/init.d/nethome remove 23 | /etc/init.d/nethome stop 24 | echo "Removing installed files" 25 | rm /etc/init.d/nethome 26 | rm /usr/sbin/nethome 27 | rm -Rf $INSTALLATION_ROOT 28 | cp $CONFIGURATION_ROOT/config.xml /home/pi/old_config.xml 29 | rm -Rf $CONFIGURATION_ROOT 30 | rm -Rf $LOG_ROOT 31 | rm -Rf $PID_ROOT 32 | rm -Rf /home/nethome 33 | -------------------------------------------------------------------------------- /server-install/src/main/scripts/install/raspbian/upgrade_nethome.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | #Assumes root, make sure to call as 'sudo ./install.sh' 4 | if [ "$(id -u)" != "0" ]; then 5 | echo "This script must be run as root. Call as 'sudo $0'" 1>&2 6 | exit 1 7 | fi 8 | 9 | NOWTIME=$(date +"%Y_%m_%d_%H_%M") 10 | FILENAME=build$NOWTIME.zip 11 | SRCPATH=$(dirname $(readlink -f $0)) 12 | 13 | cd $SRCPATH 14 | 15 | if [ ! -d "nethomebackup" ]; then 16 | mkdir nethomebackup 17 | fi 18 | if [ ! -d "nethomebackup" -o -e "nethomebackup/$1" -o -d "nethomebackup/nethomeservernightly" ]; then 19 | echo "Could not create 'nethomebackup' directory or directory not clean" 1>&2 20 | exit 1 21 | fi 22 | cd nethomebackup 23 | echo "Downloading latest OpenNetHome nightly build" 1>&2 24 | wget http://wiki.nethome.nu/lib/exe/fetch.php/$1 25 | echo "Unpacking release" 1>&2 26 | unzip $1 >/dev/null 27 | if [ ! -d "nethomeservernightly" ]; then 28 | echo "Could not download release, cancelling" 1>&2 29 | cd .. 30 | exit 1 31 | fi 32 | chmod +x nethomeservernightly/install/raspbian/*.sh 33 | if [ -x "/etc/init.d/nethome" ]; then 34 | echo "Upgrading existing installation" 1>&2 35 | nethomeservernightly/install/raspbian/upgrade.sh 36 | else 37 | echo "Making new installation" 1>&2 38 | nethomeservernightly/install/raspbian/install.sh 39 | fi 40 | rm -r nethomeservernightly 41 | mv $1 $FILENAME 42 | chmod a+w $FILENAME 43 | cd .. 44 | -------------------------------------------------------------------------------- /server-install/src/main/scripts/launch/HomeManager_32.bat: -------------------------------------------------------------------------------- 1 | cd lib 2 | del swt.jar 3 | del rxtxSerial.dll 4 | copy ..\os\rxtxSerial_32.dll rxtxSerial.dll 5 | start javaw -jar ${project.artifactId}.jar 6 | -------------------------------------------------------------------------------- /server-install/src/main/scripts/launch/HomeManager_32.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cd lib 3 | rm librxtxSerial.so 4 | cp ../os/librxtxSerial_x86_32.so librxtxSerial.so 5 | java -Djava.library.path=. -jar ${project.artifactId}.jar 6 | 7 | -------------------------------------------------------------------------------- /server-install/src/main/scripts/launch/HomeManager_64.bat: -------------------------------------------------------------------------------- 1 | cd lib 2 | del rxtxSerial.dll 3 | copy ..\os\rxtxSerial_64.dll rxtxSerial.dll 4 | start javaw -jar ${project.artifactId}.jar 5 | -------------------------------------------------------------------------------- /server-install/src/main/scripts/launch/HomeManager_64.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cd lib 3 | rm librxtxSerial.so 4 | cp ../os/librxtxSerial_x86_64.so librxtxSerial.so 5 | java -Djava.library.path=. -jar ${project.artifactId}.jar 6 | -------------------------------------------------------------------------------- /server-install/src/main/scripts/launch/HomeManager_macosx_carbon.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cd lib 3 | BASEDIR=`dirname $0` 4 | exec java \ 5 | -XstartOnFirstThread \ 6 | -classpath $BASEDIR/lib/swt.jar:$BASEDIR/lib \ 7 | -jar ${project.artifactId}.jar 8 | -------------------------------------------------------------------------------- /server-install/src/main/scripts/launch/HomeManager_macosx_cocoa.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cd lib 3 | BASEDIR=`dirname $0` 4 | exec java -d32 \ 5 | -XstartOnFirstThread \ 6 | -classpath $BASEDIR/lib/swt.jar:$BASEDIR/lib \ 7 | -jar ${project.artifactId}.jar 8 | -------------------------------------------------------------------------------- /server-install/src/main/scripts/launch/HomeManager_macosx_cocoa_64.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cd lib 3 | BASEDIR=`dirname $0` 4 | exec java \ 5 | -XstartOnFirstThread \ 6 | -classpath $BASEDIR/lib/swt.jar:$BASEDIR/lib \ 7 | -jar ${project.artifactId}.jar 8 | -------------------------------------------------------------------------------- /server-install/src/main/scripts/launch/HomeManager_raspian.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cd lib 3 | rm librxtxSerial.so 4 | cp ../os/librxtxSerial_raspian.so librxtxSerial.so 5 | java -Djava.library.path=. -jar home.jar "$@" 6 | -------------------------------------------------------------------------------- /server-install/src/main/scripts/launch/HomeManager_raspian_debug.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cd lib 3 | rm librxtxSerial.so 4 | cp ../os/librxtxSerial_raspian.so librxtxSerial.so 5 | java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 -Djava.library.path=. -jar home.jar "$@" 6 | -------------------------------------------------------------------------------- /server-install/src/main/scripts/local-install/home-install.sh: -------------------------------------------------------------------------------- 1 | echo "Setting up permissions on local installation" 2 | chgrp -R home /usr/local/lib/home-manager/HomeManagerNew 3 | chmod -R g+w /usr/local/lib/home-manager/HomeManagerNew 4 | chmod -R a+w /usr/local/lib/home-manager/HomeManagerNew 5 | mv /usr/local/lib/home-manager/HomeManagerNew /usr/local/lib/home-manager/HomeManagerNew2 6 | mv /usr/local/lib/home-manager/HomeManagerNew2/HomeManagerNew /usr/local/lib/home-manager/HomeManagerNew 7 | rm -rf /usr/local/lib/home-manager/HomeManagerNew2 -------------------------------------------------------------------------------- /server-install/src/main/scripts/setup_linux32.sh: -------------------------------------------------------------------------------- 1 | cp ../lib/rxtx/Linux/i686-unknown-linux-gnu/librxtxSerial.so ../../../ 2 | cp ../resources/demo.xml ../../../../ 3 | -------------------------------------------------------------------------------- /server-install/src/main/scripts/setup_linux64.sh: -------------------------------------------------------------------------------- 1 | cp ../lib/rxtx/Linux/x86_64-unknown-linux-gnu/librxtxSerial.so ../../../ 2 | cp ../resources/demo.xml ../../../../ 3 | -------------------------------------------------------------------------------- /server-install/src/main/scripts/setup_macosx_carbon.sh: -------------------------------------------------------------------------------- 1 | cp ../lib/rxtx/Mac_OS_X/librxtxSerial.jnilib ../../../ 2 | cp ../resources/demo.xml ../../../../ 3 | -------------------------------------------------------------------------------- /server-install/src/main/scripts/setup_macosx_cocoa.sh: -------------------------------------------------------------------------------- 1 | cp ../lib/rxtx/Mac_OS_X/librxtxSerial.jnilib ../../../ 2 | cp ../resources/demo.xml ../../../../ 3 | -------------------------------------------------------------------------------- /server-install/src/main/scripts/setup_macosx_cocoa64.sh: -------------------------------------------------------------------------------- 1 | cp ../lib/rxtx/Mac_OS_X/librxtxSerial.jnilib ../../../ 2 | cp ../resources/demo.xml ../../../../ 3 | -------------------------------------------------------------------------------- /server-install/src/main/scripts/setup_win32.bat: -------------------------------------------------------------------------------- 1 | copy ..\lib\rxtx\Windows\i368-mingw32\rxtxSerial.dll ..\..\..\ 2 | copy ..\resources\demo.xml ..\..\..\..\ 3 | -------------------------------------------------------------------------------- /server-install/src/main/scripts/setup_win64.bat: -------------------------------------------------------------------------------- 1 | copy ..\lib\rxtx\Windows\win-x64\rxtxSerial.dll ..\..\..\..\ 2 | copy ..\resources\demo.xml ..\..\..\..\ 3 | -------------------------------------------------------------------------------- /server-install/src/site/CyberLink4JavaLicense.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2003-2010, Satoshi Konno 2 | 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 6 | 7 | * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 8 | * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 9 | * Neither the name of the Cyber Garage nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. 10 | 11 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 12 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 13 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 14 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 15 | CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 16 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 17 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 18 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 19 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 20 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 21 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -------------------------------------------------------------------------------- /server-install/src/site/drivers/linux/ftdi/98-nethome.rules: -------------------------------------------------------------------------------- 1 | # /etc/udev/rules.d/98-nethome.rules contains nethome udev rules 2 | # ELV FHZ 1000 PC 3 | SYSFS{idProduct}=="f06f", SYSFS{idVendor}=="0403", RUN+="/sbin/modprobe -q ftdi_sio product=0xf06f vendor=0x0403" 4 | SUBSYSTEM=="usb",ATTRS{idProduct}=="f06f", ATTRS{idVendor}=="0403", RUN+="/etc/ftdi_fhz1000.sh" 5 | SUBSYSTEM=="usbmisc",ATTRS{idProduct}=="f06f", ATTRS{idVendor}=="0403", RUN+="/etc/ftdi_fhz1000.sh" 6 | # ELV FHZ 1300 PC 7 | SYSFS{idProduct}=="e0e8", SYSFS{idVendor}=="0403", RUN+="/sbin/modprobe -q ftdi_sio product=0xe0e8 vendor=0x0403" 8 | SUBSYSTEM=="usb",ATTRS{idProduct}=="e0e8", ATTRS{idVendor}=="0403", RUN+="/etc/ftdi_fhz1300.sh" 9 | SUBSYSTEM=="usbmisc",ATTRS{idProduct}=="e0e8", ATTRS{idVendor}=="0403", RUN+="/etc/ftdi_fhz1300.sh" 10 | # Tellstick 11 | SYSFS{idProduct}=="0c31", SYSFS{idVendor}=="1781", RUN+="/sbin/modprobe -q ftdi_sio product=0x0c31 vendor=0x1781" 12 | SUBSYSTEM=="usb",ATTRS{idProduct}=="0c31", ATTRS{idVendor}=="1781", RUN+="/etc/ftdi_tellstick.sh" 13 | SUBSYSTEM=="usbmisc",ATTRS{idProduct}=="0c31", ATTRS{idVendor}=="1781", RUN+="/etc/ftdi_tellstick.sh" 14 | -------------------------------------------------------------------------------- /server-install/src/site/drivers/linux/ftdi/ftdi_fhz1000.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | /sbin/modprobe ftdi_sio 3 | echo 0403 f06f > /sys/bus/usb-serial/drivers/ftdi_sio/new_id 4 | -------------------------------------------------------------------------------- /server-install/src/site/drivers/linux/ftdi/ftdi_fhz1300.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | /sbin/modprobe ftdi_sio 3 | echo 0403 e0e8 > /sys/bus/usb-serial/drivers/ftdi_sio/new_id 4 | -------------------------------------------------------------------------------- /server-install/src/site/drivers/linux/ftdi/ftdi_tellstick.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | /sbin/modprobe ftdi_sio 3 | echo 1781 0c31 > /sys/bus/usb-serial/drivers/ftdi_sio/new_id 4 | -------------------------------------------------------------------------------- /server-install/src/site/drivers/linux/ftdi/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | SCRIPT=$(readlink -f "$0") 3 | SCRIPTPATH=$(dirname "$SCRIPT") 4 | cp ${SCRIPTPATH}/98-nethome.rules /etc/udev/rules.d/ 5 | cp ${SCRIPTPATH}/ftdi_tellstick.sh /etc/ 6 | chmod +x /etc/ftdi_tellstick.sh 7 | cp ${SCRIPTPATH}/ftdi_fhz1000.sh /etc/ 8 | chmod +x /etc/ftdi_fhz1000.sh 9 | cp ${SCRIPTPATH}/ftdi_fhz1300.sh /etc/ 10 | chmod +x /etc/ftdi_fhz1300.sh 11 | udevadm control --reload-rules 12 | -------------------------------------------------------------------------------- /server-install/src/site/drivers/linux/ftdi/readme.txt: -------------------------------------------------------------------------------- 1 | This directory contains the files needed to make Linux understand that 2 | Tellstick and FHZ1000/FHZ1300 behave like ftdi serial ports. 3 | 4 | to install them, make the install.sh executable and run it as root: 5 | 6 | >chmod +x install.sh 7 | >sudo ./install.sh 8 | 9 | Then plug in the device and it should appear as a serial port. 10 | -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP/Static/amd64/ftd2xx.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP/Static/amd64/ftd2xx.lib -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP/Static/i386/ftd2xx.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP/Static/i386/ftd2xx.lib -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP/amd64/ftbusui.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP/amd64/ftbusui.dll -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP/amd64/ftcserco.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP/amd64/ftcserco.dll -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP/amd64/ftd2xx.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP/amd64/ftd2xx.lib -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP/amd64/ftd2xx64.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP/amd64/ftd2xx64.dll -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP/amd64/ftdibus.sys: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP/amd64/ftdibus.sys -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP/amd64/ftlang.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP/amd64/ftlang.dll -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP/amd64/ftser2k.sys: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP/amd64/ftser2k.sys -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP/amd64/ftserui2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP/amd64/ftserui2.dll -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP/dpinst-amd64.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP/dpinst-amd64.exe -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP/dpinst-x86.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP/dpinst-x86.exe -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP/ftd2xx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP/ftd2xx.h -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP/ftdibus.cat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP/ftdibus.cat -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP/ftdiport.cat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP/ftdiport.cat -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP/i386/ftbusui.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP/i386/ftbusui.dll -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP/i386/ftcserco.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP/i386/ftcserco.dll -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP/i386/ftd2xx.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP/i386/ftd2xx.dll -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP/i386/ftd2xx.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP/i386/ftd2xx.lib -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP/i386/ftdibus.sys: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP/i386/ftdibus.sys -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP/i386/ftlang.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP/i386/ftlang.dll -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP/i386/ftser2k.sys: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP/i386/ftser2k.sys -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP/i386/ftserui2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP/i386/ftserui2.dll -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP/readme.txt: -------------------------------------------------------------------------------- 1 | This are the official FTDI Virtual Com Port divers (VCP-Drivers) version 2.08.30 where information about the product ID:s of Tellstick, FHZ1000 and FHZ1300 in the files ftdiport.inf and ftdibus.inf have been added. -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP/setup.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP/setup.exe -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP_8_1/Static/amd64/ftd2xx.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP_8_1/Static/amd64/ftd2xx.lib -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP_8_1/Static/i386/ftd2xx.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP_8_1/Static/i386/ftd2xx.lib -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP_8_1/amd64/ftbusui.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP_8_1/amd64/ftbusui.dll -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP_8_1/amd64/ftcserco.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP_8_1/amd64/ftcserco.dll -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP_8_1/amd64/ftd2xx.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP_8_1/amd64/ftd2xx.lib -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP_8_1/amd64/ftd2xx64.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP_8_1/amd64/ftd2xx64.dll -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP_8_1/amd64/ftdibus.sys: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP_8_1/amd64/ftdibus.sys -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP_8_1/amd64/ftlang.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP_8_1/amd64/ftlang.dll -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP_8_1/amd64/ftser2k.sys: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP_8_1/amd64/ftser2k.sys -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP_8_1/amd64/ftserui2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP_8_1/amd64/ftserui2.dll -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP_8_1/dpinst-amd64.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP_8_1/dpinst-amd64.exe -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP_8_1/dpinst-x86.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP_8_1/dpinst-x86.exe -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP_8_1/ftd2xx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP_8_1/ftd2xx.h -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP_8_1/ftdibus.cat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP_8_1/ftdibus.cat -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP_8_1/ftdibus.inf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP_8_1/ftdibus.inf -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP_8_1/ftdiport.cat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP_8_1/ftdiport.cat -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP_8_1/i386/ftbusui.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP_8_1/i386/ftbusui.dll -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP_8_1/i386/ftcserco.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP_8_1/i386/ftcserco.dll -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP_8_1/i386/ftd2xx.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP_8_1/i386/ftd2xx.dll -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP_8_1/i386/ftd2xx.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP_8_1/i386/ftd2xx.lib -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP_8_1/i386/ftdibus.sys: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP_8_1/i386/ftdibus.sys -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP_8_1/i386/ftlang.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP_8_1/i386/ftlang.dll -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP_8_1/i386/ftser2k.sys: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP_8_1/i386/ftser2k.sys -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP_8_1/i386/ftserui2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP_8_1/i386/ftserui2.dll -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/FTDI_VCP_8_1/setup.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/FTDI_VCP_8_1/setup.exe -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/JeeLink/InstallFirmware.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | IF "%1"=="" GOTO :ERROR 4 | bin\avrdude -Cbin\avrdude.conf -v -patmega328p -carduino -P%1 -b115200 -D -Uflash:w:bin/CUL.cpp.hex:i 5 | GOTO :eof 6 | 7 | :ERROR 8 | ECHO. 9 | ECHO uploads OpenNetHome firmware to a JeeLink Classic 10 | ECHO. 11 | ECHO USAGE: flash.bat [Serial Port] 12 | ECHO. 13 | ECHO For Example: flash.bat COM7 14 | -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/JeeLink/bin/avrdude.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/JeeLink/bin/avrdude.exe -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/JeeLink/bin/libusb0.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/JeeLink/bin/libusb0.dll -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/LogoVerificationReport.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/LogoVerificationReport.pdf -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/amd64/ftbusui.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/amd64/ftbusui.dll -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/amd64/ftcserco.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/amd64/ftcserco.dll -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/amd64/ftd2xx64.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/amd64/ftd2xx64.dll -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/amd64/ftdibus.sys: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/amd64/ftdibus.sys -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/amd64/ftlang.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/amd64/ftlang.dll -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/amd64/ftser2k.sys: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/amd64/ftser2k.sys -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/amd64/ftserui2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/amd64/ftserui2.dll -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/ftd2xx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/ftd2xx.h -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/ftdibus.cat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/ftdibus.cat -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/ftdibus.inf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/ftdibus.inf -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/ftdiport.cat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/ftdiport.cat -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/ftdiport.inf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/ftdiport.inf -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/i386/ftbusui.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/i386/ftbusui.dll -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/i386/ftcserco.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/i386/ftcserco.dll -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/i386/ftd2xx.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/i386/ftd2xx.dll -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/i386/ftdibus.sys: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/i386/ftdibus.sys -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/i386/ftlang.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/i386/ftlang.dll -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/i386/ftser2k.sys: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/i386/ftser2k.sys -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/i386/ftserui2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/JeeLink/drivers/FTDI USB Drivers/i386/ftserui2.dll -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/JeeLink/drivers/README.txt: -------------------------------------------------------------------------------- 1 | 2 | With this version of Arduino a new all-in-one driver (with 3 | security signature for Windows 8) is supplied. 4 | 5 | The old (deprecated) drivers are still available in the 6 | Old_Arduino_Drivers.zip 7 | 8 | -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/JeeLink/drivers/arduino-org.cat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/JeeLink/drivers/arduino-org.cat -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/JeeLink/drivers/arduino.cat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/JeeLink/drivers/arduino.cat -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/JeeLink/drivers/dpinst-amd64.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/JeeLink/drivers/dpinst-amd64.exe -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/JeeLink/drivers/dpinst-x86.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server-install/src/site/drivers/windows/JeeLink/drivers/dpinst-x86.exe -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/JeeLink/readme.txt: -------------------------------------------------------------------------------- 1 | This is a small package for uploading the OpenNetHome firmware to a JeeLink Classic USB-Stick. 2 | The firmware installation on the JeeLink has to be made from a Windows PC, but after that you can 3 | use the JeeLink as a transmitter form OpenNetHome on Windows, Linux and OSX.On Linux and OSX you 4 | do not have to iinstall any serial drivers. 5 | 6 | On Windows you first have to install the serial drivers for the JeeLink. If you have installed the 7 | Arduino development environment, this is already installed and you should see a USB serial port in 8 | the device manager when the JeeLink is plugged in. 9 | If not, then you have to install the drivers under the drivers-folder in this directory. 10 | 11 | After that you can install the OpenNetHome firmware on the JeeLink. You do that by running the 12 | "InstallFirmware.bat" script in this folder from the command prompt with the JeeLink serial port as 13 | command argument, for example: 14 | 15 | InstallFirmware.bat com7 16 | 17 | This will upload the OpenNetHome firmware to the JeeLink. 18 | 19 | Now you can start OpenNetHome, and create a JeeLink-Item from the Create/Edit Screen and configure the Serial port. 20 | After that you should be able to control RF-Items with OpenNetHome via the JeeLink. -------------------------------------------------------------------------------- /server-install/src/site/drivers/windows/MyUSB_USBtoSerial.inf: -------------------------------------------------------------------------------- 1 | ; Windows MyUSB USB to Serial Setup File 2 | ; Copyright (c) 2000 Microsoft Corporation 3 | 4 | [Version] 5 | Signature="$Windows NT$" 6 | Class=Ports 7 | ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318} 8 | Provider=%COMPANY% 9 | LayoutFile=layout.inf 10 | DriverVer=06/06/2006,1.0.0.0 11 | 12 | [Manufacturer] 13 | %MFGNAME% = ManufName 14 | 15 | [DestinationDirs] 16 | DefaultDestDir=12 17 | 18 | [ManufName] 19 | %Modem3% = Modem3, USB\VID_03EB&PID_204B 20 | 21 | ;------------------------------------------------------------------------------ 22 | ; Windows 2000/XP Sections 23 | ;------------------------------------------------------------------------------ 24 | 25 | [Modem3.nt] 26 | CopyFiles=USBModemCopyFileSection 27 | AddReg=Modem3.nt.AddReg 28 | 29 | [USBModemCopyFileSection] 30 | usbser.sys,,,0x20 31 | 32 | [Modem3.nt.AddReg] 33 | HKR,,DevLoader,,*ntkern 34 | HKR,,NTMPDriver,,usbser.sys 35 | HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider" 36 | 37 | [Modem3.nt.Services] 38 | AddService=usbser, 0x00000002, DriverService 39 | 40 | [DriverService] 41 | DisplayName=%SERVICE% 42 | ServiceType=1 43 | StartType=3 44 | ErrorControl=1 45 | ServiceBinary=%12%\usbser.sys 46 | 47 | ;------------------------------------------------------------------------------ 48 | ; String Definitions 49 | ;------------------------------------------------------------------------------ 50 | 51 | [Strings] 52 | COMPANY="MyUSB Library" 53 | MFGNAME="Dean Camera" 54 | Modem3="USB Virtual Serial Port" 55 | SERVICE="USB Virtual Serial Port CDC Driver" -------------------------------------------------------------------------------- /server-install/src/site/example/README.txt: -------------------------------------------------------------------------------- 1 | This is a few examples of HomeItem plugins. Any jars containing plugins 2 | that are placed in this directory will be loaded by NetHomeServer at startup 3 | and the plugin Items will be used by the NetHomeServer. 4 | 5 | The source code of the examples contains comments describing how to write 6 | your own HomeItem plugins. 7 | 8 | To build the example decoder, simply issue the following commands from the 9 | command line: 10 | 11 | javac -classpath ../../lib/server-${NethomeVersion}.jar;../../lib/utils-${utils.version}.jar Example1.java Example2.java 12 | jar cf ExamplePlugin.jar Example1.class Example2.class 13 | 14 | The first line will compile the java source into .class-files and the second line will place those 15 | .class-file in a .jar-file called plugin.jar. When the NetHomeServer starts it will scan this 16 | library, find these .jar-files and load them and use the Items it finds in it. 17 | 18 | Note! if you have installed NetHomeServer in the Program Files folder on windows, you may not have 19 | write permissions to this folder. The simplest solution then is to uninstall it and reinstall it 20 | somewhere else. -------------------------------------------------------------------------------- /server-install/src/site/readme.txt: -------------------------------------------------------------------------------- 1 | 2 | ===================== NetHomeManager ========================= 3 | 4 | This is the NetHomeManager home automation server. 5 | 6 | NetHomeManager is a home control software designed to control lamps and other 7 | appliances and to gather information like temperatures and weather data and 8 | present that and also use it for home automation. 9 | 10 | This is a demo configuration with a number of lamps and thermometers which 11 | gives you an idea of how the server works. If you have no hardware devices 12 | attached which can actually control the lamps, you will not be able to see 13 | any real world results when you operate the lamp-items. See http://wiki.nethome.nu 14 | for compatible hardware interfaces. 15 | 16 | Feel free to play around with the server and create new items and get a feel for 17 | how the server works. Once you have attached any of the hardware interfaces, you 18 | can start using this server to control your home. 19 | 20 | HomeManager_32.bat - Starts the server in the Windows environment with 32 bits JVM 21 | HomeManager_64.bat - Starts the server in the Windows environment with 64 bits JVM 22 | HomeManager_32.sh - Starts the server in the Linux environment with 32 bits JVM 23 | HomeManager_64.sh - Starts the server in the Linux environment with 64 bits JVM 24 | HomeManager_macosx_carbon.sh - Starts the server in an older MAC OSX Environment 25 | HomeManager_macosx_cocoa.sh - Starts the server in an 32 bit MAC OSX Environment 26 | HomeManager_macosx_cocoa_64.sh - Starts the server in an 64 bit MAC OSX Environment 27 | HomeManager_raspian.sh - Starts the server on a RaspberryPi 28 | 29 | When the server has started you can reach the web management interface on the address: 30 | http://localhost:8020/home 31 | 32 | For more information please refer to http://www.nethome.nu 33 | -------------------------------------------------------------------------------- /server/README.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NetHome/NetHomeServer/1581932e18a2ca7854b6298896cb3c76bf89be25/server/README.txt -------------------------------------------------------------------------------- /server/src/main/java/nu/nethome/home/impl/ActionModel.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.impl; 21 | 22 | import nu.nethome.home.item.Action; 23 | import nu.nethome.home.item.HomeItem; 24 | 25 | import java.lang.reflect.InvocationTargetException; 26 | import java.lang.reflect.Method; 27 | 28 | public class ActionModel implements Action { 29 | private final String name; 30 | private final Method actionMethod; 31 | 32 | public ActionModel(String actionName, String actionMethod, Class clazz) throws NoSuchMethodException { 33 | this.name = actionName; 34 | this.actionMethod = clazz.getMethod(actionMethod, (Class[]) null); 35 | } 36 | 37 | public String getName() { 38 | return name; 39 | } 40 | 41 | public String call(HomeItem item) throws InvocationTargetException, IllegalAccessException { 42 | return (String) actionMethod.invoke(item, (Object[]) null); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /server/src/main/java/nu/nethome/home/impl/HomeItemLoader.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.impl; 21 | 22 | import nu.nethome.home.item.HomeItem; 23 | 24 | import java.util.List; 25 | 26 | /** 27 | * This is the interface for saving and loading HomeItems 28 | */ 29 | public interface HomeItemLoader { 30 | 31 | /** 32 | * Save all HomeItems in the list to the specified resource. The state of the HomeItems 33 | * is extracted by calling the get-methods for all attributes. 34 | * @param items List of items to save 35 | * @param name Name of the resource to save to, file name for example 36 | */ 37 | void saveItems(List items, String name); 38 | 39 | /** 40 | * Load HomeItems from the specified source. The HomeItems are created and their 41 | * state is loaded by applying the set-methods for all attributes 42 | */ 43 | List loadItems(String fileName, HomeItemFactory factory, HomeServer homeServer); 44 | } 45 | -------------------------------------------------------------------------------- /server/src/main/java/nu/nethome/home/impl/InternalAction.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.impl; 21 | 22 | import nu.nethome.home.item.Action; 23 | 24 | public class InternalAction implements Action { 25 | 26 | private String name = ""; 27 | private String actionMethod; 28 | 29 | public InternalAction(String name1, String actionMethod) { 30 | this.name = name1; 31 | this.actionMethod = actionMethod; 32 | } 33 | 34 | public String getActionMethod() { 35 | return actionMethod; 36 | } 37 | 38 | public String getName() { 39 | return name; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /server/src/main/java/nu/nethome/home/impl/InternalDirectoryEntry.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.impl; 21 | 22 | import nu.nethome.home.system.DirectoryEntry; 23 | 24 | /** 25 | * Directory entry when listing instances of HomeItems 26 | */ 27 | public class InternalDirectoryEntry implements DirectoryEntry { 28 | private String instanceName; 29 | private long instanceId; 30 | private String category; 31 | 32 | public InternalDirectoryEntry(String instanceName, long instanceId, String category) { 33 | this.instanceName = instanceName; 34 | this.instanceId = instanceId; 35 | this.category = category; 36 | } 37 | 38 | public String getInstanceName() { 39 | return instanceName; 40 | } 41 | 42 | public long getInstanceId() { 43 | return instanceId; 44 | } 45 | 46 | public String getCategory() { 47 | return category; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /server/src/main/java/nu/nethome/home/impl/ModelException.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.impl; 21 | 22 | public class ModelException extends Exception { 23 | public ModelException(String message) { 24 | super(message); 25 | } 26 | 27 | public ModelException(String message, Throwable cause) { 28 | super(message, cause); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /server/src/main/java/nu/nethome/home/impl/relation/RelationAttribute.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.impl.relation; 21 | 22 | interface RelationAttribute { 23 | boolean hasRelationTo(String item); 24 | } 25 | -------------------------------------------------------------------------------- /server/src/main/java/nu/nethome/home/item/Action.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.item; 21 | 22 | /** 23 | * Description of a HomeItem action 24 | */ 25 | public interface Action { 26 | 27 | /** 28 | * @return the name of the action 29 | */ 30 | String getName(); 31 | } -------------------------------------------------------------------------------- /server/src/main/java/nu/nethome/home/item/AttributeModel.java: -------------------------------------------------------------------------------- 1 | package nu.nethome.home.item; 2 | 3 | import java.util.List; 4 | 5 | /** 6 | * 7 | */ 8 | public interface AttributeModel { 9 | String getName(); 10 | 11 | List getValueList(); 12 | 13 | String getType(); 14 | 15 | String getUnit(); 16 | 17 | boolean isReadOnly(); 18 | 19 | boolean isCanInit(); 20 | 21 | boolean isWriteOnly(); 22 | } 23 | -------------------------------------------------------------------------------- /server/src/main/java/nu/nethome/home/item/AutoCreationInfo.java: -------------------------------------------------------------------------------- 1 | package nu.nethome.home.item; 2 | 3 | import nu.nethome.home.system.Event; 4 | 5 | /** 6 | * Gives information regarding auto creation of a HomeItem class 7 | */ 8 | public interface AutoCreationInfo { 9 | public String[] getCreationEvents(); 10 | 11 | public boolean canBeCreatedBy(Event e); 12 | 13 | public String getCreationIdentification(Event e); 14 | } 15 | -------------------------------------------------------------------------------- /server/src/main/java/nu/nethome/home/item/ExecutionFailure.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.item; 21 | 22 | /** 23 | * An exception to signal that a supplied value is not accepted. 24 | * User: Stefan 25 | * Date: 2011-06-02 26 | */ 27 | public class ExecutionFailure extends Exception { 28 | 29 | private static final long serialVersionUID = 1L; 30 | 31 | public ExecutionFailure(String message) { 32 | super(message); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /server/src/main/java/nu/nethome/home/item/ExtendedLoggerComponent.java: -------------------------------------------------------------------------------- 1 | package nu.nethome.home.item; 2 | 3 | import nu.nethome.home.system.HomeService; 4 | 5 | /** 6 | * 7 | */ 8 | public class ExtendedLoggerComponent extends LoggerComponent { 9 | 10 | public ExtendedLoggerComponent(ValueItem logged) { 11 | super(logged); 12 | homeItemId = Long.toString(logged.getItemId()); 13 | } 14 | 15 | public void activate(HomeService server) { 16 | String logPath = ""; 17 | if (server != null) { 18 | logPath = server.getConfiguration().getLogDirectory(); 19 | } 20 | super.activate(logPath); 21 | service = server; 22 | config = service.getConfiguration(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /server/src/main/java/nu/nethome/home/item/HomeItemInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.item; 21 | 22 | import nu.nethome.home.system.Event; 23 | 24 | /** 25 | * Static information known of a HomeItem type without creating an instance 26 | */ 27 | public interface HomeItemInfo { 28 | 29 | String getClassName(); 30 | 31 | String getCategory(); 32 | 33 | String[] getCreationEventTypes(); 34 | 35 | Boolean canBeCreatedBy(Event event); 36 | 37 | String getCreationIdentification(Event event); 38 | } 39 | -------------------------------------------------------------------------------- /server/src/main/java/nu/nethome/home/item/HomeItemModel.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.item; 21 | 22 | import java.util.List; 23 | 24 | public interface HomeItemModel { 25 | 26 | static final String HOME_ITEM_CATEGORIES[] = { 27 | "Lamps", 28 | "Timers", 29 | "Ports", 30 | "GUI", 31 | "Hardware", 32 | "Controls", 33 | "Gauges", 34 | "Thermometers", 35 | "Infrastructure", 36 | "Actuators" 37 | }; 38 | 39 | static final String STRING_LIST_TYPE = "StringList"; 40 | 41 | String getCategory(); 42 | 43 | String getClassName(); 44 | 45 | int getStartOrder(); 46 | 47 | String getDefaultAction(); 48 | 49 | AttributeModel getDefaultAttribute(); 50 | 51 | boolean hasAttribute(String attributeName); 52 | 53 | boolean hasAction(String actionName); 54 | 55 | /** 56 | * Returns a list of all supported actions of the current HomeItem instance. 57 | * 58 | * @return Supported Actions 59 | */ 60 | List getActions(); 61 | } -------------------------------------------------------------------------------- /server/src/main/java/nu/nethome/home/item/HomeItemType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.item; 21 | 22 | import java.lang.annotation.Retention; 23 | import java.lang.annotation.RetentionPolicy; 24 | 25 | @Retention(RetentionPolicy.RUNTIME) 26 | public @interface HomeItemType { 27 | String value(); 28 | String creationEvents() default ""; 29 | Class creationInfo() default AutoCreationInfo.class; 30 | } 31 | -------------------------------------------------------------------------------- /server/src/main/java/nu/nethome/home/item/IllegalValueException.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.item; 21 | 22 | /** 23 | * An exception to signal that a supplied value is not accepted. 24 | * User: Stefan 25 | * Date: 2011-06-02 26 | */ 27 | public class IllegalValueException extends Exception { 28 | 29 | private static final long serialVersionUID = 1L; 30 | private String value; 31 | 32 | public IllegalValueException(String message, String value) { 33 | super(message); 34 | this.value = value; 35 | } 36 | 37 | public String getValue() { 38 | return value; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /server/src/main/java/nu/nethome/home/item/ValueItem.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.item; 21 | 22 | public interface ValueItem { 23 | 24 | /** 25 | * @return Returns the value. 26 | */ 27 | String getValue(); 28 | 29 | /** 30 | * Get the unique identity of the ValueItem. This identity is unique within 31 | * one server instance and does never change. 32 | * 33 | * @return Identity 34 | */ 35 | long getItemId(); 36 | } -------------------------------------------------------------------------------- /server/src/main/java/nu/nethome/home/system/DirectoryEntry.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.system; 21 | 22 | /** 23 | * Directory entry when listing instances of HomeItems 24 | */ 25 | public interface DirectoryEntry { 26 | 27 | /** 28 | * @return Name of instance 29 | */ 30 | String getInstanceName(); 31 | 32 | /** 33 | * @return Internal id of instance 34 | */ 35 | long getInstanceId(); 36 | 37 | /** 38 | * @return Category of instance 39 | */ 40 | String getCategory(); 41 | } 42 | -------------------------------------------------------------------------------- /server/src/main/java/nu/nethome/home/system/FinalEventListener.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.system; 21 | 22 | public interface FinalEventListener { 23 | /** 24 | * Receive Event after it has been offered to all HomeItems. 25 | * 26 | * @param event the Event to process 27 | * @param isHandled true if the event was handled by one or more of the HomeItems 28 | */ 29 | void receiveFinalEvent(Event event, boolean isHandled); 30 | } 31 | -------------------------------------------------------------------------------- /server/src/main/java/nu/nethome/home/system/ServiceConfiguration.java: -------------------------------------------------------------------------------- 1 | package nu.nethome.home.system; 2 | 3 | /** 4 | * Interface to access global configuration parameters of the service 5 | */ 6 | public interface ServiceConfiguration { 7 | 8 | /** 9 | * Get the file path to the directory where log and data files should be written. 10 | * This directory can be assumed writable by the process. 11 | * 12 | * @return full file path to the log directory including ending path separator 13 | */ 14 | String getLogDirectory(); 15 | 16 | /** 17 | * Get the ValueItemLogger descriptor which is used to set the global 18 | * logger component type used by all HomeItems that require logging its 19 | * value. 20 | * 21 | * @return 22 | */ 23 | String getValueItemLoggerDescriptor(); 24 | } 25 | -------------------------------------------------------------------------------- /server/src/main/java/nu/nethome/home/system/ServiceState.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.system; 21 | 22 | import java.util.Collection; 23 | import java.util.logging.LogRecord; 24 | 25 | /** 26 | * Holds information about the current state of the service 27 | */ 28 | public interface ServiceState { 29 | 30 | /** 31 | * Retrieves the last log records generated in the system. The list is reset at system start. The list is bounded 32 | * so only the last records generated are returned. Log records are also stored in log files. 33 | * @return last log entries 34 | */ 35 | Collection getCurrentLogRecords(); 36 | 37 | /** 38 | * Returns number of current log records with severity WARNING or higher 39 | * @return number of records 40 | */ 41 | int getCurrentAlarmCount(); 42 | 43 | /** 44 | * Returns the total number of log records that has been generated since server was started 45 | * @return 46 | */ 47 | long getTotalLogRecordCount(); 48 | } 49 | -------------------------------------------------------------------------------- /server/src/main/java/nu/nethome/home/util/EncoderMessage.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2005-2013, Stefan Strömberg 3 | * 4 | * This file is part of OpenNetHome (http://www.nethome.nu) 5 | * 6 | * OpenNetHome is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * OpenNetHome is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | package nu.nethome.home.util; 21 | 22 | import nu.nethome.util.ps.FieldValue; 23 | import nu.nethome.util.ps.Message; 24 | 25 | import java.util.ArrayList; 26 | import java.util.Collections; 27 | import java.util.List; 28 | 29 | public class EncoderMessage implements Message { 30 | 31 | private ArrayList values = new ArrayList(); 32 | 33 | @Override 34 | public List getFields() { 35 | return Collections.unmodifiableList(values); 36 | } 37 | 38 | public void addValue(FieldValue value) { 39 | values.add(value); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /server/src/test/java/nu/nethome/home/impl/BootWebServerTest.java: -------------------------------------------------------------------------------- 1 | package nu.nethome.home.impl; 2 | 3 | import org.junit.Ignore; 4 | import org.junit.Test; 5 | 6 | public class BootWebServerTest { 7 | 8 | @Ignore 9 | @Test 10 | public void testWebServer() throws Exception { 11 | final BootWebServer bootWebServer = new BootWebServer("Starting OpenNetHomeServer"); 12 | bootWebServer.start(8020); 13 | for (int i = 0; i < 10; i++) { 14 | Thread.sleep(1000); 15 | bootWebServer.beginSection("Iteration " + i); 16 | } 17 | bootWebServer.stop(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /server/src/test/java/nu/nethome/home/impl/UpgraderTest.java: -------------------------------------------------------------------------------- 1 | package nu.nethome.home.impl; 2 | 3 | import org.junit.Before; 4 | import org.junit.Ignore; 5 | import org.junit.Test; 6 | 7 | /** 8 | * 9 | */ 10 | public class UpgraderTest { 11 | 12 | Upgrader upgrader; 13 | 14 | @Before 15 | public void setUp() throws Exception { 16 | upgrader = new Upgrader(); 17 | } 18 | 19 | @Ignore 20 | @Test 21 | public void Download() throws Exception { 22 | 23 | upgrader.downloadRelease("http://wiki.nethome.nu/lib/exe/fetch.php/nethomeservernightly.zip"); 24 | 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /server/src/test/java/nu/nethome/home/items/UsbScannerTest.java: -------------------------------------------------------------------------------- 1 | package nu.nethome.home.items; 2 | 3 | import org.junit.Before; 4 | import org.junit.Ignore; 5 | import org.junit.Test; 6 | 7 | /** 8 | * 9 | */ 10 | public class UsbScannerTest { 11 | 12 | private UsbScanner usbScanner; 13 | 14 | @Before 15 | public void setUp() throws Exception { 16 | usbScanner = new UsbScanner(); 17 | } 18 | 19 | @Ignore 20 | @Test 21 | public void scanDevices() throws Exception { 22 | try { 23 | usbScanner.activate(null); 24 | usbScanner.scan(); 25 | } finally { 26 | usbScanner.stop(); 27 | } 28 | } 29 | } 30 | --------------------------------------------------------------------------------