79 lines
7.4 KiB
YAML
79 lines
7.4 KiB
YAML
todo:
|
|
- more than NTG; blue one
|
|
- !states emits current state
|
|
- test each !command callbacks to matrix
|
|
- recv-as for clients so pa receives mas commands as writes
|
|
- continuation is garbo, but I can still do better client side to avoid get-set high level
|
|
- no hard code jpeg or have it in multiple places
|
|
- change matrix so I test my custom logic even if I dont fetch remote
|
|
- warn/err/etc. on clobbering ids.matrix since clients can mess with one another
|
|
- todo: filter out jobs like CA
|
|
subtasks:
|
|
- banlist criteria like vendors, brokers, metadata
|
|
- set up copy for caleb, broc
|
|
- move from main() and make more functions
|
|
done:
|
|
- modify old items once no longer available; drop stale jobs good candidate but requires new matrix interaction
|
|
- from states to zip codes w/ range
|
|
- fast exact does not use ID in UID because they spammy
|
|
- fast exact is dumb or...?
|
|
- try search ntg by autoinc?
|
|
- TEST. Just like, refactor and test to shit.
|
|
- mark jobs no longer avail by modifying in matrix;; save matrix ID over dummy payload
|
|
- TEST its falling apart
|
|
- help() log on truckstop for stuff like perma 403
|
|
- figure out zoom on maps;; is there like an auto-zoom I can leverage?
|
|
- mock is nigh useless
|
|
- mark consumed;; save scroll id for matrix
|
|
- todo: switch house to selfhosted for rate limit
|
|
tags: now
|
|
- todo: details from ntg; stophours for pickup, appointmenttime/facitlyhours for dest
|
|
details: |
|
|
curl 'https://ntgvision.com/api/v1/load/LoadDetails?loadId=5088453' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0' -H 'Accept: application/json, text/plain, */*' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate, br' -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMzgyMSIsInVuaXF1ZV9uYW1lIjoiYmlyZGNvbXBhbnlsb2dpc3RpY3NAZ21haWwuY29tIiwianRpIjoiYTFiMjkxM2YtN2RjZS00ZDQ0LWEzMDYtMTRjMTBlYjQ2MmE1Iiwi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2VyIjoiRmFsc2UiLCJvdmVycmlkZUJsYWNrbGlzdCI6IkZhbHNlIiwic2hvd1JhdGVzIjoiRmFsc2UiLCJ1c2VyQ2FycmllcnMiOiIxMTQxOTMiLCJvdHJVc2VyIjoiRmFsc2UiLCJuYmYiOjE2NDIwODMxMTUsImV4cCI6MTY0MjE2NTkxNSwiaXNzIjoiTlRHIFNlY3VyaXR5IFRva2VuIFNlcnZpY2UiLCJhdWQiOiJOVEcifQ.eDE2Jfok79b7oD1deP_00h9g8zZ3AnY60McnJ1hfS-8YJ12L3Bl-CJeN0eBos0aj2FXHv5MrqOJ6MFCaatqjIddPJl2MvtSByGUCLBzih67O20mkCowCmZfGjSnKvUu7DHFxjzo_y4_a3cjjGPYNc2LSCVJxV9NYzSXIuXG3WvXeE3dv8ml23bJFFhMWZzhSAfWBOW4kR61sibS6BpRD8dpkKoqUfXInq_7o8jz9_PsEhPBdJydqbXwg8ifQHkaPNAojsIr2rnJ3Tf_iQpom-6oAEUAOd2D3fK1XuWtRrysnD8s41YDthmqKpni2WOk72L-sKzRxD4KX2t_gyEb3Fw' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: same-origin' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache'
|
|
{"headerSummary":"Washington, NC to Abilene, TX","loadId":5088453,"miles":1481,"weight":6000,"temp":null,"equipment":"Str Truck W/ Lift Gate","categoryName":"Lighting / Lighting Fixtures","categoryLabel":"Product Category","cargoInformation":["Store Fixtures - 6000 lbs"],"loadRequirements":["Straight Truck with lift gate required"],"stopInfos":[{"loadInfoIds":[5431607],"stopDateTime":"0001-01-01T00:00:00","isPickup":true,"location":"Washington, NC","stopDate":"Friday, 01/14/22","stopHours":"10:00 - 12:00","appointmentTime":"","appointmentType":"FCFS","instructions":"***LIFTGATE, PALLET JACK, DRIVER ASSIST***--MUST DELIVER ONLY ON APPT TIME-- CANNOT DELIVER EARLY OR LATE \r\n","isDropTrailer":false,"shipperName":"IDX NORTH CAROLINA","processedStopDate":""},{"loadInfoIds":[5431607],"stopDateTime":"0001-01-01T00:00:00","isPickup":false,"location":"Abilene, TX","stopDate":"Monday, 01/17/22","stopHours":"09:00 - 10:00","appointmentTime":"09:00","appointmentType":"APPT","instructions":"***LIFTGATE, PALLET JACK, DRIVER ASSIST***--MUST DELIVER ONLY ON APPT TIME-- CANNOT DELIVER EARLY OR LATE \r\n","isDropTrailer":false,"shipperName":"hibbett sports","processedStopDate":""}],"drayStopInfos":null,"rateInfo":null,"isDray":false,"equipmentGroupId":8,"totalCarrierRate":2600.00,"payUpTo":2700.00,"firstLoadInfoId":5431607,"loadStatus":"ACTIVE","hasBlockingAlert":false,"customerLoadBlocked":false,"canSeeRate":false,"canBookNow":false,"canBidNow":true,"buttonData":{"useBidDialog":false,"lastBidAmount":null,"remainingBids":1,"carrierPhoneNumber":null,"carrierPhoneExtension":null},"stopData":[{"addr":"IDX NORTH CAROLINA","city":"Washington","state":"NC","zip":"27889"},{"addr":"hibbett sports","city":"Abilene","state":"TX","zip":"79606"}]}
|
|
|
|
- tokens in db, not in config
|
|
- cache on disk jobinfo
|
|
- link to view more
|
|
- map with to-from line
|
|
- TO CONFLUENT.RS OR W/E
|
|
- rm get-set stuff for matrix now that it has continuation
|
|
- setup ma on element !!fluffychat
|
|
- !help,
|
|
- !states optional but explicit option
|
|
- TEST; convert pauseuntil to search results only on and after target date
|
|
- pause until => !busy until
|
|
- todo: maps of to+from to get location within state via api
|
|
details: |
|
|
curl 'https://maps.googleapis.com/maps/api/staticmap?center=Advance,NC&markers=label=A|Advance,NC&zoom=5&size=250x250&scale=2&format=jpeg&maptype=roadmap&key=AIzaSyBkACm-LQkoSfsTO5_XAzBVZE9-JQzcNkg' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0' -H 'Accept: image/avif,image/webp,*/*' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate, br' -H 'DNT: 1' -H 'Alt-Used: maps.googleapis.com' -H 'Connection: keep-alive' -H 'Sec-Fetch-Dest: image' -H 'Sec-Fetch-Mode: no-cors' -H 'Sec-Fetch-Site: cross-site' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache' -H 'TE: trailers' > whatever.jpg; open whatever.jpg~/Go/src/gogs.inhome.blapointe.com/local/truckstop
|
|
subtasks:
|
|
- DONE; yandex; key 9baa3e42-c6e5-4eb5-a891-05ffcede6a25 yandex maps
|
|
- google; key AIzaSyBkACm-LQkoSfsTO5_XAzBVZE9-JQzcNkg
|
|
- todo: upload g map to imgur
|
|
details: |
|
|
w oath d9ac7cabe813d10 9d0b3d82800b30ca88f595d3bcd6985f627d7d82
|
|
Authorization: Client-ID d9ac7cabe813d10
|
|
Authorization: Bearer YOUR_ACCESS_TOKEN
|
|
- quiet hours
|
|
- "@caleb commands: args"
|
|
- accept after date
|
|
- accept pause commands
|
|
- accept states via element for one system
|
|
- write to matrix on config change like states
|
|
- rate LIMIT
|
|
- rate limit brokers
|
|
- many users -> 1 ntg query
|
|
- multi client
|
|
- rm email
|
|
- send matrix msg on config change
|
|
- setup pa on element
|
|
- configurable email interval
|
|
- jitter on intervals, including dedicated err span
|
|
- email doesnt get all matches
|
|
- send jobs
|
|
- read jobs
|
|
- parse jobs
|
|
- gather jobs
|
|
- read states
|
|
- read email to state file from gogs.inhome.blapointe.com/local/sandbox/contact/contact
|