FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
pom421
pom421belle-energie-checker
Public
Like
1
belle-energie-checker
Home
Code
12
.github
1
.history
10
.vscode
1
backend
4
cron
lib
1
.vtignore
README.md
TODO.md
config.ts
deno.json
drizzle.ts
Branches
1
Pull requests
Remixes
History
Environment variables
1
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
Code
/
Search
https://pom421--800270a81a0811f0a366569c3dd06744.web.val.run
README.md

La Belle Energie checker

C'est un projet Val Town qui permet de checker la dernier fichier pdf des tarifs de la belle énergie et de m'envoyer un mail si jamais il a changé.

  • index.http.tsx comporte tous les endpoints
  • checkNewTarif.cron.ts est le cron pour vérifier si le fichier des tarifs a changé

Mise à jour du code

  • git commit et push
  • vt push

Problèmes

Dans index.http.tsx, si je laisse le profil TypeScript fonctionnait, avec : "editor.codeActionsOnSave": { "source.fixAll": "always", "source.organizeImports": "always" },

l'import React est supprimé. Cela provoque des problèmes de lint dans VS Code mais aussi un problème pour Val Town, pour lancer le formulaire.

J'ai changé sur un profil Default pour contourner le problème.

HTTP
  • index.http_20250601160838.tsx
    pom421--33…13.web.val.run
  • index.http_20250601160853.tsx
    pom421--33…13.web.val.run
  • index.http_20250601160857.tsx
    pom421--33…13.web.val.run
  • index.http_20250601160900.tsx
    pom421--34…13.web.val.run
  • index.http_20250601210243.tsx
    pom421--44…13.web.val.run
  • index.http_20250601210644.tsx
    pom421--97…13.web.val.run
  • index.http_20250601210648.tsx
    pom421--97…13.web.val.run
  • index.http_20250601210741.tsx
    pom421--39…13.web.val.run
  • index.http_20250601210807.tsx
    pom421--39…13.web.val.run
  • index.http_20250601210808.tsx
    pom421--39…13.web.val.run
  • index.http_20250601211425.tsx
    pom421--a5…13.web.val.run
  • index.http.tsx
    pom421--80…44.web.val.run
Cron
  • checkNewTarif.cron.ts
Code
.github.history.vscodebackendcronlib.vtignoreREADME.mdTODO.mdconfig.tsdeno.jsondrizzle.ts
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.