hibiyasleep / calcium Goto Github PK
View Code? Open in Web Editor NEWfetch/parse school meals list from goverment.
fetch/parse school meals list from goverment.
Coffee sucks enough, it's time to ES2015+
경기, 교
로 find
Method를 사용할 시 다음과 같은 에러가 발생합니다.
[REMOVED]\node_modules\calcium\src\find.js:22
const foundData = body.resultSVO.orgDVOList
^
TypeError: Cannot read property 'orgDVOList' of undefined
at Request.request [as _callback] ([REMOVED]\node_modules\calcium\src\find.js:22:38)
at Request.self.callback ([REMOVED]\node_modules\request\request.js:185:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request.<anonymous> ([REMOVED]\node_modules\request\request.js:1161:10)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at IncomingMessage.<anonymous> ([REMOVED]\node_modules\request\request.js:1083:12)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
제주, 제주대학교사범대학부설중학교
로 find
Method를 사용한 결과값으로 get
Method를 사용할 시 다음과 같은 에러가 발생합니다.
[REMOVED]\node_modules\calcium\src\get.js:13
throw new TypeError('Invalid or unknown code: '+ school)
^
TypeError: Invalid or unknown code: A000003567
at Object.fetchSchoolMeal [as get] ([REMOVED]\node_modules\calcium\src\get.js:13:11)
at calcium.find ([REMOVED])
at Request.request [as _callback] ([REMOVED]\node_modules\calcium\src\find.js:30:12)
at Request.self.callback ([REMOVED]\node_modules\request\request.js:185:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request.<anonymous> ([REMOVED]\node_modules\request\request.js:1161:10)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at IncomingMessage.<anonymous> ([REMOVED]\node_modules\request\request.js:1083:12)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
find
Method를 사용한 결과 값은 다음과 같습니다.
[ { name: '제주대학교사범대학부설중학교',
code: 'A000003567',
type: '중학교',
address: '제주특별자치도 제주시 용담삼동' } ]
광주, 운남
등으로 find
Method를 사용할 시 unable to verify the first certificate
에러가 발생합니다.
As title.
calcium.get callback can't response to the data because callback has not the res object
It is necessary to change a node-jsdom module
Hello.
I'm trying to make a twitter bot based on your module.
While i trying to make a twitter bot, I found a @SunrinMeal Twitter bot source code on your gist profile : https://gist.github.com/hibiyasleep/a29a1099147733d9d1e526d6671fa9c9
I modifie this source code and create the json file, but I did not get the OAuth to linking the twitter account.
Could you tell me the structure of /home/hibiya/.calciumrc json
file?
#!/usr/bin/env node
'use strict'
const calcium = require('calcium')
const moment = require('moment')
const fs = require('fs')
const T = require('twit')
const rc = JSON.parse(fs.readFileSync('calciumrc.json').toString())
let d = new Date()
let today = d.getDate()
let hour = d.getHours()
for(let id in rc.accounts) {
let account = rc.accounts[id]
let t = new T({
consumer_key: 'consumer_key',
consumer_secret: 'consumer_secret',
access_token: 'access_token',
access_token_secret: 'access_token_secret',
timeout_ms: 60*1000, // optional HTTP request timeout to apply to all requests.
})
calciumrc.json
code{
"account": {
"id": {
"school": "T100000124"
}
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.