node-dimora-client
Unofficial client module for DiMORA. It works on Node.js v8+.
Notice
- This software is published under testing phase.
- This is unofficial software for the convenience of owners (and also Node.js engineers) of the TV-recorders connected with DiMORA.
- I don't any guarantee about this software.
- I don't have any relationship with the company of DiMORA or the vendors of the TV-recorders.
Get Started
1. Installation
Install this module and additional module for an example code.
$ npm install --save dimora-client readline-sync
2. Logging-in (Getting Session JSON)
This step is required when you perform operations requiring membership on DiMORA (such as recording reservation).
const LoginChallenger = ;const readlineSync = ; // TODO: Put your Login ID and Login Password of DiMORA to hereconst YOUR_LOGIN_ID = '';const YOUR_LOGIN_PW = '';// ------------------------------ // Start a challenge for loginlet loginChallenger = { if error console; process; // Save the CAPTCHA image console; ; // You need to enter the answer the CAPTCHA image while at this challenge const captcha_answer = readlineSync; console; // Finish the challenge with your login ID, password and an answer of CAPTCHA loginChallenger; };
3. Searching for TV Program and Recording Reservation
const DimoraClient = ;const readlineSync = ; // TODO Put your Session JSON acquired in step 2 to hereconst YOUR_SESSION_JSON = null;// ------------------------------ // Initialize the Client with the Session JSONconst client = YOUR_SESSION_JSON; // Now, you can searching for TV program on DiMORAconsole;const search_keyword = readlineSync; clienttvSchedules;
API Documents
https://mugifly.github.io/node-dimora-client/DimoraClient.html
Trademarks of Third Party
- "DiMORA" is a trademark of Panasonic Coporation.
License
The MIT License (MIT)
Copyright (c) 2017 Masanori Ohgita